Function at 0x4244d3
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0xf0
mov eax, dword [0x446b10]
xor eax, ebp
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x68]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x6c]
push ebx
mov ebx, dword [ebp + 0x78]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x70]
push edi
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x74]
xor edi, edi
cmp dword [0x4c5eb4], edi
mov dword [ebp - 0x88], eax
je 0x42471a
cmp dword [0x4c5eb8], edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
jne 0x4245b3
push edi
push edi
push 4
push edi
push 1
push 0xc0000000
push 0x4080dc
call fcn.0043884d
cmp eax, 0xffffffff
mov dword [0x4c5eb8], eax
jne 0x424568
push 0x408078
push edi
call fcn.0040cba4
mov dword [0x4c5eb4], edi
jmp 0x424719
push edi
lea ecx, [ebp - 0x80]
push ecx
push 0xe
push 0x408064
push eax
call esi
push edi
lea eax, [ebp - 0x80]
push eax
push 0x12
push 0x408050
push dword [0x4c5eb8]
call esi
push edi
lea eax, [ebp - 0x80]
push eax
push 0x1b
push 0x408034
push dword [0x4c5eb8]
call esi
push edi
lea eax, [ebp - 0x80]
push eax
push 0x18
push 0x40801c
push dword [0x4c5eb8]
call esi
cmp dword [ebp + 0x7c], edi
mov edi, dword [sym.imp.MSVCR80.dll_sprintf_s]
lea eax, [ebp + 0x50]
je 0x4245d2
push dword [ebx]
push 0x403168
push 0xa
push eax
call edi
add esp, 0x10
jmp 0x4245e6
fld dword [ebx]
push ecx
push ecx
fstp qword [esp]
push 0x408014
push 0xa
push eax
call edi
add esp, 0x14
lea eax, [ebp + 0x50]
push eax
push dword [ebp - 0x84]
mov ebx, 0xc9
push 0x40800c
lea eax, [ebp - 0x7c]
push ebx
push eax
call edi
lea eax, [ebp - 0x7c]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42460a
sub eax, ecx
push 0
lea ecx, [ebp - 0x80]
push ecx
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x4c5eb8]
call esi
push dword [ebp - 0x8c]
lea eax, [ebp - 0x7c]
push dword [ebp - 0x84]
push 0x407ffc
push ebx
push eax
call edi
lea eax, [ebp - 0x7c]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x424647
sub eax, ecx
push 0
lea ecx, [ebp - 0x80]
push ecx
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x4c5eb8]
call esi
push dword [ebp - 0x88]
lea eax, [ebp - 0x7c]
push dword [ebp - 0x84]
push 0x407fec
push ebx
push eax
call edi
lea eax, [ebp - 0x7c]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x424684
sub eax, ecx
push 0
lea ecx, [ebp - 0x80]
push ecx
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x4c5eb8]
call esi
push dword [ebp - 0x90]
lea eax, [ebp - 0x7c]
push dword [ebp - 0x84]
push 0x407fd8
push ebx
push eax
call edi
lea eax, [ebp - 0x7c]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4246c1
sub eax, ecx
push 0
lea ecx, [ebp - 0x80]
push ecx
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x4c5eb8]
call esi
push 0x407fd0
push dword [ebp - 0x84]
lea eax, [ebp - 0x7c]
push 0x407fbc
push ebx
push eax
call edi
lea eax, [ebp - 0x7c]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4246fd
sub eax, ecx
push 0
lea ecx, [ebp - 0x80]
push ecx
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x4c5eb8]
call esi
pop esi
mov ecx, dword [ebp + 0x5c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043eef0
add ebp, 0x60
leave
ret 0x18