Function at 0x407d00
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
mov eax, 0x10f4
call fcn.00457320
sub esp, eax
lea eax, [esp + 0x10f0]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x54], 0x4f3670
mov dword [esp + 0x58], 0x4f4a7a
mov dword [esp + 0x60], 0x4082fb
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x64], esp
mov dword [esp], eax
call fcn.00458010
mov ecx, dword [esp + 0x1104]
mov eax, dword [esp + 0x1100]
test ecx, ecx
je 0x4081a0
mov eax, dword [eax + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1100]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x24], eax
or eax, dword [esp + 0x20]
jne 0x407df0
mov eax, dword [esp + 0x1104]
lea ecx, [esp + 0xf0]
mov dword [esp + 0x40], 0xffffffff
mov dword [esp], eax
call fcn.00401630
sub esp, 4
lea eax, [esp + 0xf0]
mov dword [esp + 0x40], 1
mov dword [esp], eax
call fcn.004047f0
xor eax, 1
mov byte [esp + 0x20], al
mov eax, dword [esp + 0xf0]
lea edx, [esp + 0xf8]
cmp eax, edx
je 0x407dcf
mov dword [esp], eax
call fcn.004f28f0
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.004580a0
movzx eax, byte [esp + 0x20]
add esp, 0x10f4
pop ebx
pop ebp
ret 8
mov eax, dword [esp + 0x1100]
mov dword [esp], 0x4f906e
mov dword [esp + 0x40], 0xffffffff
lea ecx, [eax + 0x10]
call fcn.00473d20
sub esp, 4
test eax, eax
je 0x407e2d
mov eax, dword [esp + 0x1100]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
cmp byte [edx + eax - 1], 0x2f
je 0x407f11
mov eax, dword [esp + 0x1104]
mov dword [esp + 0x40], 0xffffffff
call fcn.00403620
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
je 0x408190
lea eax, [esp + 0xf0]
mov dword [esp + 0xf0], 0
mov dword [esp + 0xc], 2
mov dword [esp + 4], 0
mov dword [esp + 0x40], 0xffffffff
xor ebx, ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x20], eax
call eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x10
mov dword [esp + 0x24], ecx
call ecx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0xf0]
mov dword [esp + 0xf0], 0
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [esp], edx
call dword [esp + 0x20]
sub esp, 0x10
mov ecx, eax
mov eax, dword [esp + 0xf0]
mov edx, eax
xor eax, eax
add eax, ecx
adc edx, ebx
mov ebx, dword [esp + 0x1100]
xor edx, dword [ebx + 0x34]
xor eax, dword [ebx + 0x30]
mov ecx, edx
or ecx, eax
je 0x407f50
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov byte [esp + 0x20], 0
jmp 0x407dcf
mov eax, dword [esp + 0x1104]
lea ecx, [esp + 0xf0]
mov dword [esp + 0x40], 0xffffffff
mov dword [esp], eax
call fcn.00401630
sub esp, 4
lea eax, [esp + 0xf0]
mov dword [esp + 0x40], 2
mov dword [esp], eax
call fcn.004047f0
jmp 0x407db1
lea eax, [esp + 0xf0]
mov dword [esp + 0xf0], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [esp + 0x20]
sub esp, 0x10
mov eax, dword [esp + 0x24]
call eax
lea ecx, [esp + 0x80]
call fcn.00425e20
mov eax, dword [esp + 0x1100]
mov edx, dword [eax + 0x48]
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x20], eax
sub eax, edx
sar eax, 2
test eax, eax
je 0x40828a
mov edx, dword [edx]
test edx, edx
je 0x408178
mov ecx, dword [esp + 0x28]
mov ebx, dword [ecx + 0x10c]
mov eax, dword [ecx + 0x108]
mov ecx, ebx
mov dword [esp + 0x20], ebx
sub ecx, eax
sar ecx, 3
imul ecx, ecx, 0xaaaaaaab
cmp ecx, edx
jbe 0x408178
mov dword [esp + 0x38], 0
lea edx, [edx + edx*2]
shl edx, 3
mov ecx, dword [eax + edx + 0x14]
mov dword [esp + 0x34], edx
test ecx, ecx
js 0x408178
add eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [eax + 0x14]
test eax, eax
jle 0x4080ed
mov dword [esp + 0x20], 0
lea esi, [esi]
lea edi, [edi]
sub eax, dword [esp + 0x20]
mov ecx, 0x1000
lea ebx, [esp + 0x7c]
lea edx, [esp + 0xf0]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 4], edx
cmp eax, 0x1000
cmovg eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
mov dword [esp + 8], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
mov ebx, dword [esp + 0x7c]
cmp ebx, dword [esp + 0x2c]
mov dword [esp + 0x24], ebx
jne 0x408270
mov eax, ebx
mov dword [esp + 4], ebx
lea ebx, [esp + 0xf0]
sar eax, 0x1f
lea ecx, [esp + 0x80]
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00426f50
sub esp, 0xc
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
add dword [esp + 0x20], ecx
mov ebx, dword [esp + 0x20]
add edx, dword [eax + 0x108]
mov eax, dword [edx + 0x14]
cmp eax, ebx
jg 0x408030
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x80]
mov dword [esp + 0x40], 0xffffffff
call fcn.004272e0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], 0x14
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x408270
mov eax, dword [esp + 0x1100]
add dword [esp + 0x38], 1
mov ebx, dword [esp + 0x38]
mov edx, dword [eax + 0x48]
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x20], eax
sub eax, edx
sar eax, 2
cmp ebx, eax
jae 0x40828a
mov edx, dword [edx + ebx*4]
test edx, edx
je 0x408178
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx + 0x108]
mov ebx, dword [ebx + 0x10c]
mov ecx, ebx
mov dword [esp + 0x20], ebx
sub ecx, eax
sar ecx, 3
imul ecx, ecx, 0xaaaaaaab
cmp edx, ecx
jb 0x407ff7
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov byte [esp + 0x20], 0
jmp 0x407dcf
mov eax, dword [eax + 0x48]
mov ebx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1100]
mov eax, dword [eax + 0x4c]
sub eax, ebx
sar eax, 2
test eax, eax
mov dword [esp + 0x24], eax
je 0x408265
mov eax, dword [ebx]
test eax, eax
je 0x408190
mov edx, dword [esp + 0x28]
mov ebx, dword [edx + 0x108]
mov edx, dword [edx + 0x10c]
sub edx, ebx
mov dword [esp + 0x30], ebx
sar edx, 3
imul edx, edx, 0xaaaaaaab
cmp eax, edx
mov dword [esp + 0x28], edx
jae 0x408190
mov dword [esp + 0x20], 0
jmp 0x40822a
add dword [esp + 0x20], 1
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x24]
je 0x408265
mov edx, eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x408190
cmp eax, dword [esp + 0x28]
jae 0x408190
mov edx, dword [esp + 0x30]
lea eax, [eax + eax*2]
lea eax, [edx + eax*8]
mov edx, dword [eax + 0x14]
test edx, edx
js 0x408190
mov dword [esp + 8], 0x14
mov dword [esp + 4], 0x4faaf8
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x408200
mov byte [esp + 0x20], 0
jmp 0x407dcf
mov byte [esp + 0x20], 1
jmp 0x407dcf
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov byte [esp + 0x20], 0
jmp 0x407dcf
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x1000
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0xc], eax
lea eax, [esp + 0xf0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
mov ebx, dword [esp + 0x7c]
test ebx, ebx
jne 0x408178
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov byte [esp + 0x20], 1
jmp 0x407dcf