Function at 0x404710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c4f0
mov eax, dword fs:[0]
push eax
mov eax, 0x113c
call fcn.0044bdf0
mov eax, dword [0x469a54]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp dword [edi + 4], 3
jg 0x404988
push 4
mov dword [ebp - 0x1130], 0
lea ecx, [ebp - 0x1130]
push str.INFO
mov dword [ebp - 0x1120], 0
mov dword [ebp - 0x111c], 0xf
mov byte [ebp - 0x1130], 0
call fcn.00402250
push 5
push str.ERROR
lea ecx, [ebp - 0x1130]
mov dword [ebp - 4], 0
call fcn.00402250
push 0x1000
lea eax, [ebp - 0x1110]
push 0
push eax
call fcn.00430ba0
push 0
call fcn.00434766
mov dword [ebp - 0x1118], eax
lea eax, [ebp - 0x1118]
push eax
mov dword [ebp - 0x1114], edx
call fcn.00434a53
push 0x100
mov esi, eax
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00430ba0
push dword [esi]
mov eax, dword [esi + 0x10]
push dword [esi + 4]
inc eax
push dword [esi + 8]
push dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
push eax
push str._d__d__d__d:_d:_d
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.00402fd0
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x1148], 0
add esp, 0x44
mov dword [ebp - 0x1138], 0
mov dword [ebp - 0x1134], 0xf
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404842
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x1148]
call fcn.00402250
cmp dword [ebp - 0x1134], 0x10
lea ecx, [ebp - 0x1148]
lea eax, [ebp - 0x1130]
cmovae ecx, dword [ebp - 0x1148]
cmp dword [ebp - 0x111c], 0x10
push ecx
cmovae eax, dword [ebp - 0x1130]
push eax
push str.__s__s
lea eax, [ebp - 0x1110]
push 0x1000
push eax
call fcn.00402fd0
mov ecx, dword [ebp - 0x1134]
add esp, 0x14
cmp ecx, 0x10
jb 0x4048db
mov edx, dword [ebp - 0x1148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4048d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4049ae
push ecx
push edx
call fcn.0042f189
add esp, 8
lea ecx, [ebp - 0x1110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4048e4
lea eax, [ebp + 0x10]
sub ecx, edx
push eax
push 0
mov eax, 0x1000
sub eax, ecx
push ebx
push eax
lea eax, [ebp - 0x1110]
add eax, ecx
push eax
call fcn.00402fc0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.00434742
lea eax, [ebp - 0x1110]
push eax
push 0x454e9c
call fcn.00403df0
lea ecx, [ebp - 0x1110]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404935
push dword [edi]
sub ecx, edx
lea eax, [ebp - 0x1110]
push ecx
push 1
push eax
call fcn.004351fb
mov ecx, dword [ebp - 0x111c]
add esp, 0x10
cmp ecx, 0x10
jb 0x404988
mov edx, dword [ebp - 0x1130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40497e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4049b3
push ecx
push edx
call fcn.0042f189
add esp, 8
push dword [edi]
call fcn.00434f87
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042eefa
mov esp, ebp
pop ebp
ret
call fcn.00432a12
call fcn.00432a12
int3