Function at 0x4054b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 2
push ebx
push 3
push 0x40000000
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0xc]
mov esi, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp + 8], edi
je 0x405701
cmp dword [ebp + 0x10], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x405513
cmp dword [ebp + 0x14], 0
je 0x405513
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call ebx
lea eax, [ebp - 4]
push 0
push eax
lea eax, [esi + 0x64]
push 0x40
push eax
push edi
call ebx
xor edi, edi
cmp dword [esi + 0x88], edi
mov dword [ebp + 0x14], edi
jbe 0x4056e1
mov ecx, dword [ebp + 0xc]
xor edx, edx
cmp ecx, edx
jne 0x40554a
mov eax, dword [esi + 0xa4]
cmp dword [eax + edi], 7
jbe 0x405584
jmp 0x405599
cmp ecx, 1
jne 0x40556d
mov eax, dword [esi + 0xa4]
mov eax, dword [eax + edi]
cmp eax, ecx
je 0x405599
cmp eax, 2
je 0x405599
cmp eax, 3
je 0x405599
cmp eax, 7
jb 0x405584
jmp 0x405599
cmp ecx, 2
jne 0x405584
mov eax, dword [esi + 0xa4]
mov eax, dword [eax + edi]
cmp eax, edx
je 0x405599
cmp eax, 1
je 0x405599
mov eax, dword [esi + 0xa4]
add eax, edi
cmp dword [eax], edx
jne 0x40563e
cmp dword [ebp - 8], edx
je 0x4055ae
lea eax, [ebp - 4]
push edx
push eax
lea eax, [ebp - 0x10]
push 8
push eax
push dword [ebp + 8]
call ebx
jmp 0x4056cc
cmp ecx, 1
jne 0x4055bb
mov ecx, dword [esi + 0x94]
jmp 0x4055c1
mov ecx, dword [esi + 0x98]
cmp ecx, edx
jbe 0x4056ef
cmp dword [ebp + 0xc], 1
jne 0x4055d7
mov ecx, dword [esi + 0x94]
jmp 0x4055dd
mov ecx, dword [esi + 0x98]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0xa4]
push dword [edi + eax + 4]
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, dword [esi + 0xa4]
mov dword [edi + ecx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 0xa4]
add eax, edi
xor ecx, ecx
mov edx, dword [eax + 4]
sub edx, 4
je 0x405635
mov edx, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
add edx, ecx
mov dword [eax + ecx], edx
mov eax, dword [esi + 0xa4]
add eax, edi
add ecx, 4
mov edx, dword [eax + 4]
sub edx, 4
cmp ecx, edx
jb 0x405615
xor edx, edx
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push edx
push eax
mov eax, edi
add eax, dword [esi + 0xa4]
push 8
push eax
push dword [ebp + 8]
call ebx
mov eax, dword [esi + 0xa4]
add eax, edi
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40569b
push ecx
mov ecx, esi
push dword [eax + 0x10]
call fcn.00404f51
mov eax, dword [esi + 0xa4]
lea ecx, [ebp - 4]
add eax, edi
push 0
push ecx
push dword [eax + 4]
push dword [eax + 0x10]
push dword [ebp + 8]
call ebx
mov eax, dword [esi + 0xa4]
mov ecx, esi
add eax, edi
push dword [eax + 4]
push dword [eax + 0x10]
call fcn.00404f8e
mov eax, dword [esi + 0xa4]
add eax, edi
cmp dword [eax], 0
jne 0x4056cc
and dword [eax + 4], 0
mov eax, dword [esi + 0xa4]
mov eax, dword [edi + eax + 0x10]
test eax, eax
je 0x4056cc
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esi + 0xa4]
pop ecx
and dword [edi + eax + 0x10], 0
inc dword [ebp + 0x14]
add edi, 0x18
mov eax, dword [ebp + 0x14]
cmp eax, dword [esi + 0x88]
jb 0x405533
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x405703
mov dword [eax + 4], edx
mov eax, dword [esi + 0xa4]
mov dword [edi + eax + 0x10], edx
jmp 0x405637
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10