Function at 0x4047c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x497040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24c], edi
cmp dword [ebx + 8], 0xffffffff
jne 0x4047fa
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f4a5
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x108], 0
jbe 0x404aea
push esi
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0043dfab
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0045818b
add esp, 0x14
lea ecx, [ebp - 0x108]
call fcn.00414560
lea eax, [ebp - 0x108]
mov ecx, ebx
push eax
call fcn.00403250
mov dword [ebp - 0x25c], eax
lea esi, [ebx + 0x2a0]
cmp eax, 0xffffffff
je 0x404883
mov ecx, dword [esi]
imul eax, eax, 0x13c
mov dword [ebp - 0x254], eax
mov dword [ecx + eax + 0x100], 0
mov ecx, dword [esi]
mov dword [ecx + eax + 0x104], 0
jmp 0x40488d
mov dword [ebp - 0x254], 0xfffffec4
mov eax, dword [edi + 0x104]
mov ecx, ebx
push eax
mov dword [ebp - 0x248], eax
call fcn.00403c10
mov dword [ebp - 0x250], eax
mov ecx, 0x4f
cmp eax, 0xffffffff
jne 0x404993
mov eax, dword [ebp - 0x248]
lea esi, [edi + 4]
mov edx, dword [ebx + 0x2a4]
lea edi, [ebp - 0x244]
cmp edx, dword [ebx + 0x2a8]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebx + 0x114]
mov dword [ebp - 0x138], eax
lea eax, [ebx + 0x2a0]
je 0x404904
mov ecx, 0x4f
lea esi, [ebp - 0x244]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
add dword [eax + 4], 0x13c
jmp 0x404919
lea ecx, [ebp - 0x244]
push ecx
push edx
mov ecx, eax
call fcn.0040d930
lea eax, [ebx + 0x2a0]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
imul eax, eax, 0x613716af
push 0
push 0
imul eax, eax, 0x13c
push dword [eax + ecx - 0x30]
push dword [ebx + 8]
call fcn.00402070
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffffff
je 0x404973
push 0
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0
push eax
mov eax, dword [ebp - 0x24c]
push dword [eax + 0x104]
push dword [eax + 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 1
push 0
push 0
push dword [ebx + 8]
mov byte [ebx + 0x118], 1
call fcn.00402070
mov dword [ebx + 0x114], eax
jmp 0x404ae9
mov esi, dword [esi]
lea edi, [ebp - 0x244]
imul eax, eax, 0x13c
add esi, eax
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x244]
push 0x100
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0043dfab
mov ecx, dword [ebp - 0x24c]
lea esi, [ebp - 0x244]
mov edi, dword [ebx + 0x2a0]
add esp, 0xc
mov edx, dword [ebp - 0x248]
add edi, edx
mov eax, dword [ecx + 0x104]
mov dword [ebp - 0x144], eax
mov eax, dword [ecx + 0x108]
mov dword [ebp - 0x140], eax
mov eax, dword [ecx + 0x114]
mov ecx, 0x4f
mov dword [ebp - 0x134], eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x2a0]
push 0
push 0
push dword [edx + eax + 0x10c]
push dword [ebx + 8]
call fcn.00402070
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffffff
je 0x404a58
push 0
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], 0
push eax
mov eax, dword [ebp - 0x24c]
push dword [eax + 0x104]
push dword [eax + 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x25c]
cmp eax, 0xffffffff
je 0x404a9e
cmp eax, dword [ebp - 0x250]
je 0x404a9e
mov eax, dword [ebx + 0x114]
add eax, dword [ebp - 0x254]
push 0
push 0
push eax
push dword [ebx + 8]
call fcn.00402070
mov eax, dword [ebx + 0x2a0]
add eax, dword [ebp - 0x254]
push 0x13c
push eax
push dword [ebx + 8]
call fcn.00402110
mov eax, dword [ebx + 0x114]
mov edi, dword [ebp - 0x248]
add eax, edi
push 0
push 0
push eax
push dword [ebx + 8]
call fcn.00402070
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffffff
je 0x404ae9
push 0
lea eax, [ebp - 0x250]
mov dword [ebp - 0x250], 0
push eax
mov eax, dword [ebx + 0x2a0]
push 0x13c
add eax, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.0042f4a5
mov esp, ebp
pop ebp
ret 4