Function at 0x407cc7
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0x28
mov eax, 0x43c577
call fcn.0043ac4f
mov esi, dword [ebp + 0xc]
lea edi, [esi + 0x18]
mov ecx, edi
mov dword [ebp - 0x18], edi
call fcn.004015aa
mov eax, dword [esi + 4]
test al, 0x40
mov ecx, 0x445828
je 0x407cf6
mov ecx, 0x445820
jmp 0x407cff
test al, 0x20
je 0x407cff
mov ecx, 0x445818
push ecx
push dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
call dword [sym.imp.MSVCR80.dll__wfopen]
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi], eax
jne 0x407d3c
lea eax, [ebp + 0xc]
push eax
call fcn.0040480e
pop ecx
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00403b8b
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004012d8
xor al, al
jmp 0x40802d
mov ecx, dword [esi + 4]
test cl, 0x10
mov byte [ebp + 0xf], 1
mov dword [ebp + 8], ebx
je 0x407f37
mov edi, dword [sym.imp.MSVCR80.dll_fseek]
push 2
push ebx
push eax
call edi
push dword [esi]
call dword [sym.imp.MSVCR80.dll_ftell]
push ebx
push ebx
push dword [esi]
mov dword [esi + 8], eax
call edi
mov eax, dword [esi + 8]
mov edi, 0x400
add esp, 0x1c
cmp eax, edi
jge 0x407d85
mov edi, eax
cmp edi, ebx
je 0x407ff8
push edi
call fcn.00439cd2
push dword [esi]
mov dword [ebp - 0x14], eax
push 1
push edi
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x14
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
mov byte [ebp + 0xf], bl
je 0x407ef6
and dword [ebp - 0x10], 0
and dword [esi + 4], 0xfffffffa
mov dword [esi + 0x10], 1
cmp dword [0x459498], 0
je 0x407e1b
xor ecx, ecx
mov eax, dword [ecx + 0x45949c]
test eax, eax
mov dword [ebp - 0x1c], eax
jle 0x407df9
mov ebx, dword [ebp + 8]
cmp ebx, edi
jge 0x407dfc
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x459498]
mov dl, byte [edx + ebx]
cmp dl, byte [ebx + eax]
jne 0x407dfc
inc ebx
cmp ebx, dword [ebp - 0x1c]
mov dword [ebp + 8], ebx
jl 0x407dd6
jmp 0x407dfc
mov ebx, dword [ebp + 8]
cmp ebx, dword [ebp - 0x1c]
je 0x407f04
inc dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
and dword [ebp + 8], 0
shl ecx, 4
cmp dword [ecx + 0x459498], 0
jne 0x407dc9
mov ebx, dword [ebp + 8]
cmp edi, ebx
jle 0x407e30
push 0
push ebx
push dword [esi]
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
cmp dword [ebp + 8], 0
mov ebx, 0x4417fc
jne 0x407eda
push 0x45b440
lea ecx, [ebp - 0x10]
call fcn.0040160e
push edi
push dword [ebp - 0x14]
mov dword [ebp - 4], 1
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push ecx
mov dword [eax], ebx
mov eax, esp
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], esp
mov dword [eax], 0x44559c
call fcn.00403e64
push edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00401746
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x24], edi
call fcn.00402e2a
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040309a
mov edi, dword [ebp - 0x10]
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
mov dword [eax], edi
lea eax, [ebp - 0x1c]
push eax
call fcn.00406767
pop ecx
pop ecx
lea ecx, [esi + 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.00403b8b
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004012d8
lea ecx, [ebp - 0x34]
call fcn.0040345a
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.004012d8
lea ecx, [esi + 0x1c]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x407ef3
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0x3c
jne 0x407ef3
push ebx
call fcn.00401873
mov bl, byte [ebp + 0xf]
push dword [ebp - 0x14]
call fcn.0043adcc
pop ecx
jmp 0x407fd0
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [eax + 0x4594a4]
or ecx, dword [esi + 4]
sub dword [esi + 8], ebx
push 2
mov dword [esi + 4], ecx
pop ecx
cmp ebx, ecx
jne 0x407f23
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 0x4594a0]
lea ecx, [esi + 0x1c]
push eax
call fcn.00401873
jmp 0x407e1e
test cl, 0x20
je 0x407ff8
test cl, 0x40
mov dword [esi + 0x10], 1
je 0x407f57
push eax
call dword [sym.imp.MSVCR80.dll_ftell]
pop ecx
mov dword [esi + 8], eax
cmp dword [esi + 8], ebx
jne 0x407ff8
xor edi, edi
cmp dword [0x459498], ebx
je 0x407ff8
mov ecx, dword [esi + 4]
xor eax, eax
test dword [eax + 0x4594a4], ecx
jne 0x407f8b
inc edi
mov eax, edi
shl eax, 4
cmp dword [eax + 0x459498], ebx
jne 0x407f73
jmp 0x407ff8
shl edi, 4
mov ebx, dword [edi + 0x45949c]
push 2
pop eax
cmp ebx, eax
mov dword [ebp + 8], ebx
jne 0x407fb0
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x4594a0]
lea ecx, [esi + 0x1c]
push eax
call fcn.00401873
push dword [esi]
push 1
push ebx
push dword [edi + 0x459498]
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
dec eax
neg eax
sbb al, al
inc al
mov byte [ebp + 0xf], al
mov bl, al
test bl, bl
jne 0x407ff6
lea eax, [ebp + 8]
push eax
call fcn.0040480e
pop ecx
mov ecx, dword [ebp - 0x18]
push eax
mov dword [ebp - 4], 4
call fcn.00403b8b
mov ecx, dword [ebp + 8]
jmp 0x407d2d
xor ebx, ebx
add esi, 0x1c
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x40802a
mov ecx, dword [ebp - 0x18]
push esi
call fcn.00403b8b
cmp dword [ebp + 8], ebx
je 0x40801d
mov ecx, dword [ebp - 0x18]
push 0x445808
call fcn.00403b00
mov ecx, dword [ebp - 0x18]
push 0x445310
call fcn.00403b00
mov al, byte [ebp + 0xf]
call fcn.0043ad27
ret