Function at 0x4044a9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xd198
call fcn.00418d90
push ebx
push esi
push edi
push 1
pop ebx
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.004086a6
pop ecx
cmp eax, 3
pop ecx
jne 0x40495d
push 0x43246c
push dword [ebp + 0xc]
call fcn.0040cf12
pop ecx
push eax
lea eax, [ebp - 0x694]
push 0x200
push eax
call fcn.00416475
xor edi, edi
add esp, 0x10
cmp eax, edi
mov dword [ebp - 8], eax
je 0x40495d
push 0x401
lea eax, [ebp - 0x494]
push edi
push eax
call fcn.004189f0
push 0xdac
lea eax, [ebp - 0x1640]
push edi
push eax
call fcn.004189f0
push 0x1b58
lea eax, [ebp - 0x9198]
push edi
push eax
call fcn.004189f0
push 0xdab
lea eax, [ebp - 0x1640]
push 0x41
push eax
call fcn.004189f0
mov esi, dword [ebp + 8]
push 5
shl esi, 4
push 0x428c58
mov eax, dword [esi + 0x428cb8]
mov ecx, dword [esi + 0x428cb4]
mov dword [ebp + eax - 0x1640], ecx
lea eax, [ebp - 0xd44]
push eax
call fcn.00418a50
push 0x3f
lea eax, [ebp - 0xd3f]
push 0x428c70
push eax
call fcn.00418a50
add esp, 0x48
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x694]
push dword [ebp - 8]
push eax
call fcn.0040439a
lea eax, [ebp - 0x494]
push eax
call fcn.00418970
push eax
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0xd00]
push eax
call fcn.00418a50
lea eax, [ebp - 0x494]
push eax
call fcn.00418970
and byte [ebp + eax - 0xd00], 0
add esp, 0x20
xor ecx, ecx
lea eax, [ebp - 0x9198]
movzx dx, byte [ebp + ecx - 0x1640]
mov word [eax], dx
inc ecx
inc eax
inc eax
cmp ecx, 0xdac
jb 0x4045e1
lea eax, [ebp + 0x10]
push eax
push 0x428b68
lea eax, [ebp - 0x3640]
push 0x2000
push eax
call fcn.00418916
lea eax, [ebp - 0x3640]
push 0x2000
push eax
lea eax, [ebp - 0xd198]
push eax
call fcn.00419ce5
lea eax, [ebp + 0x10]
push 0x429e28
push eax
call fcn.00423620
add esp, 0x24
test eax, eax
je 0x404689
lea eax, [ebp + 0x10]
push eax
push 0x427dd8
lea eax, [ebp - 0x5640]
push 0x2000
push eax
call fcn.00418916
push 0x20
lea eax, [ebp - 0x90]
push edi
push eax
call fcn.004189f0
lea eax, [ebp - 0x5640]
add esp, 0x1c
mov dword [ebp - 0x7c], eax
mov eax, 0x43afa4
push edi
push eax
push eax
lea eax, [ebp - 0x90]
push eax
call dword [0x4422f0]
lea eax, [ebp + 0x10]
push eax
push 0x429e14
lea eax, [ebp - 0x7640]
push 0x2000
push eax
call fcn.00418916
add esp, 0x10
lea eax, [ebp - 0x7640]
push edi
push edi
push 3
push edi
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4046ce
push edi
push edi
jmp 0x404954
push 0x48
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.004189f0
and byte [ebp - 0x6b], 0
push 0x10
pop eax
mov byte [ebp - 0x6c], 5
mov dword [ebp - 0x68], eax
push eax
lea eax, [ebp - 0x4c]
push 0x429e00
push eax
mov byte [ebp - 0x6a], 0xb
mov byte [ebp - 0x69], 3
mov word [ebp - 0x64], 0x48
mov word [ebp - 0x62], di
mov dword [ebp - 0x60], ebx
mov word [ebp - 0x5c], 0x10b8
mov word [ebp - 0x5a], 0x10b8
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x50], di
mov byte [ebp - 0x4e], 1
mov dword [ebp - 0x3c], ebx
call fcn.00418a50
push 0x10
lea eax, [ebp - 0x38]
push 0x429dec
push eax
mov dword [ebp - 0x28], 2
call fcn.00418a50
add esp, 0x24
lea eax, [ebp - 0x70]
push edi
push eax
lea eax, [ebp - 0x6c]
push 0x48
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4047bb
lea eax, [ebp - 0xd198]
push eax
call fcn.00419cc8
pop ecx
lea ebx, [eax + eax + 0x12]
test bl, 3
je 0x404774
inc ebx
jmp 0x40476c
cmp byte [esi + 0x428cbc], 0
je 0x404780
add ebx, 4
lea eax, [ebp - 0x9198]
push eax
call fcn.00419cc8
pop ecx
lea eax, [ebx + eax*2 + 0xe]
test al, 3
je 0x404798
inc eax
jmp 0x404791
add eax, 8
cmp byte [esi + 0x428cbc], 0
je 0x4047a9
add eax, 4
jmp 0x4047ab
inc eax
inc eax
push eax
mov dword [ebp - 8], eax
call fcn.00418ea4
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x4047c9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4046c7
push dword [ebp - 8]
push edi
push ebx
call fcn.004189f0
push 4
push 0x428c60
push ebx
call fcn.00418a50
lea eax, [ebp - 0xd198]
push eax
call fcn.00419cc8
inc eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], edi
mov eax, dword [ebx + 0xc]
mov dword [ebx + 4], eax
lea eax, [ebp - 0xd198]
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.00418e7f
lea eax, [ebp - 0xd198]
push eax
call fcn.00419cc8
lea eax, [eax + eax + 0x12]
add esp, 0x28
test al, 3
mov dword [ebp + 8], eax
je 0x40482b
inc eax
test al, 3
jne 0x404823
mov dword [ebp + 8], eax
cmp byte [esi + 0x428cbc], 0
je 0x40484d
push 4
add eax, ebx
push 0x428c68
push eax
call fcn.00418a50
add esp, 0xc
add dword [ebp + 8], 4
mov eax, dword [ebp + 8]
add eax, ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x9198]
push eax
call fcn.00419cc8
mov ecx, eax
mov eax, dword [ebp - 0xc]
inc ecx
add dword [ebp + 8], 0xc
mov dword [eax + 8], ecx
mov dword [eax + 4], edi
mov ecx, dword [eax + 8]
mov dword [eax], ecx
lea eax, [ebp - 0x9198]
push eax
mov eax, dword [ebp + 8]
add eax, ebx
push eax
call fcn.00418e7f
lea eax, [ebp - 0x9198]
push eax
call fcn.00419cc8
mov ecx, dword [ebp + 8]
add esp, 0x10
lea eax, [ecx + eax*2 + 2]
test al, 3
mov dword [ebp + 8], eax
je 0x4048aa
inc eax
test al, 3
jne 0x4048a2
mov dword [ebp + 8], eax
push 8
add eax, ebx
push edi
push eax
call fcn.004189f0
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, 8
cmp byte [esi + 0x428cbc], 0
je 0x4048cc
mov dword [eax + ebx], edi
jmp 0x4048d2
mov word [eax + ebx], 1
push 0x18
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.004189f0
add esp, 0xc
mov cl, byte [esi + 0x428cbc]
and byte [ebp - 0x23], 0
and byte [ebp - 0x22], 0
push 1
mov word [ebp - 0x1a], di
pop eax
mov word [ebp - 0x10], di
push eax
push 0x10b8
push dword [ebp - 8]
lea esi, [ebp - 0x24]
neg cl
sbb ecx, ecx
push ebx
and ecx, 2
sub esp, 0x18
add ecx, 0x19
mov byte [ebp - 0x24], 5
push 6
mov word [ebp - 0xe], cx
pop ecx
mov byte [ebp - 0x21], 3
mov edi, esp
push dword [ebp - 4]
mov dword [ebp - 0x20], 0x10
mov dword [ebp - 0x18], eax
rep movsd dword es:[edi], dword [esi]
call fcn.004043cb
add esp, 0x2c
test al, al
push dword [ebp - 4]
jne 0x404961
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00418f18
pop ecx
push 0
push 0
push dword [ebp - 0x7c]
call dword [0x4422b0]
xor eax, eax
jmp 0x4049bc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00418f18
pop ecx
xor esi, esi
push esi
push esi
push dword [ebp - 0x7c]
call dword [0x4422b0]
push esi
lea eax, [ebp - 0x894]
push dword [ebp + 0xbc]
push eax
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0xc]
call fcn.0040a474
lea eax, [ebp - 0x894]
push eax
call fcn.00405616
mov eax, dword [ebp + 0xb4]
add esp, 0x18
imul eax, eax, 0x3c
inc dword [eax + 0x429e60]
push 1
lea eax, [eax + 0x429e60]
pop eax
pop edi
pop esi
pop ebx
leave
ret