Function at 0x4276a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x10], 0
test esi, esi
je 0x427a00
mov ecx, dword [esi]
test ecx, ecx
je 0x4276ce
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
jmp 0x4276d3
mov eax, 0x44f5a4
push 0x44f390
mov ecx, eax
call dword [sym.imp.MSVCR100.dll_public:_bool___thiscall_type_info::operator_class_type_info_const__const]
test al, al
je 0x427a00
mov eax, dword [esi]
add eax, 4
mov dword [esp + 0x14], eax
je 0x427a00
mov ebx, dword [ebp + 8]
call fcn.00422b00
mov eax, dword [ebx + 0x10]
add eax, 8
cmp eax, dword [ebx + 0x14]
jb 0x427712
lea esi, [ebx + 4]
call fcn.00425c80
mov eax, dword [ebx + 0x10]
lea ecx, [eax + 8]
mov dword [ebx + 0x10], ecx
test eax, eax
je 0x427729
mov dword [eax], 0
mov byte [eax + 4], 1
mov edx, dword [ebx]
mov esi, dword [edx]
push 0x5b
call fcn.004235f0
add esp, 4
call fcn.00422b00
mov eax, dword [ebx + 0x10]
add eax, 8
cmp eax, dword [ebx + 0x14]
jb 0x42774f
lea esi, [ebx + 4]
call fcn.00425c80
mov eax, dword [ebx + 0x10]
lea ecx, [eax + 8]
mov dword [ebx + 0x10], ecx
test eax, eax
je 0x427766
mov dword [eax], 0
mov byte [eax + 4], 0
mov edx, dword [ebx]
mov esi, dword [edx]
push 0x7b
call fcn.004235f0
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov edi, dword [eax]
add esp, 4
cmp edi, eax
je 0x4277d9
cmp dword [edi + 0x1c], 8
lea eax, [edi + 8]
jb 0x427792
mov eax, dword [eax]
mov dword [esp + 0xc], eax
jmp 0x427796
mov dword [esp + 0xc], eax
cmp word [eax], 0
mov esi, eax
je 0x4277a9
mov edi, edi
add esi, 2
cmp word [esi], 0
jne 0x4277a0
call fcn.00422b00
mov eax, dword [esp + 0xc]
sub esi, eax
sar esi, 1
push esi
push eax
push ebx
call fcn.00422e20
lea eax, [edi + 0x24]
push ebx
call fcn.00423160
mov edi, dword [edi]
mov ecx, dword [esp + 0x18]
add dword [esp + 0x14], eax
add esp, 4
cmp edi, dword [ecx + 4]
jne 0x427781
add dword [ebx + 0x10], 0xfffffff8
mov eax, dword [ebx + 0x10]
cmp dword [eax], 0
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
je 0x427864
mov edx, dword [ebx]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x427812
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x427812
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0xa
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x42783e
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x42783e
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0
inc dword [esi + 0xc]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
movzx edx, word [ebx + 0x20]
mov ecx, dword [ebx]
shr eax, 3
imul eax, dword [ebx + 0x24]
push edx
push ecx
call fcn.00423660
add esp, 8
mov edx, dword [ebx]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x42788b
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x42788b
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0x7d
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x4278b7
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x4278b7
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0
inc dword [esi + 0xc]
mov edx, dword [ebx + 0x10]
cmp edx, dword [ebx + 0xc]
jne 0x4278ea
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x4278ea
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
add dword [ebx + 0x10], 0xfffffff8
mov eax, dword [ebx + 0x10]
cmp dword [eax], 0
je 0x42796f
mov ecx, dword [ebx]
mov esi, dword [ecx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x42791d
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x42791d
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0xa
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x427949
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x427949
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0
inc dword [esi + 0xc]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
movzx edx, word [ebx + 0x20]
mov ecx, dword [ebx]
shr eax, 3
imul eax, dword [ebx + 0x24]
push edx
push ecx
call fcn.00423660
add esp, 8
mov edx, dword [ebx]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x427996
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x427996
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0x5d
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x4279c2
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x4279c2
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0
inc dword [esi + 0xc]
mov edx, dword [ebx + 0x10]
cmp edx, dword [ebx + 0xc]
jne 0x4279f5
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x4279f5
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
mov ebx, edi
call fcn.00422b00
mov ecx, dword [edi + 0x10]
lea esi, [edi + 4]
add ecx, 8
cmp ecx, dword [esi + 0x10]
jb 0x427a1d
call fcn.00425c80
mov eax, dword [esi + 0xc]
lea edx, [eax + 8]
mov dword [esi + 0xc], edx
test eax, eax
je 0x427a34
mov dword [eax], 0
mov byte [eax + 4], 0
mov eax, dword [edi]
mov esi, dword [eax]
push 0x7b
call fcn.004235f0
add esp, 4
call fcn.004227b0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret