Function at 0x407ee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x563780
push 0x4d8830
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2238
call fcn.004d7c90
mov eax, dword [0x56c3c0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, edx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x2248], ecx
mov byte [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov word [ebp - 0x1f], ax
mov byte [ebp - 0x1d], al
mov byte [ebp - 0x240], al
push 0x1ff
push eax
lea edx, [ebp - 0x23f]
push edx
call fcn.004d5720
add esp, 0xc
lea esi, [ebp - 0x2240]
xor eax, eax
mov dword [ebp - 0x2244], eax
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x224c]
push eax
push 0x2000
mov ecx, esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40812e
cmp dword [ebp - 0x224c], 0x2000
jb 0x40812e
mov eax, esi
call fcn.00415320
test eax, eax
je 0x40812e
mov eax, dword [ebp - 0x2228]
shr eax, 8
mov ecx, ebx
cmp al, 1
jne 0x407ff0
lea edx, [ebp - 0x240]
mov ebx, esi
call fcn.00407ca0
test eax, eax
jne 0x408102
mov dword [ebp - 0x2244], 0xc0000101
jmp 0x408138
lea edi, [ebp - 0x3c]
call fcn.00414fe0
mov eax, 0x20
lea ecx, [ebp - 0x1fe4]
mov edx, edi
cmp eax, 4
jb 0x40804f
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x40801b
sub eax, 4
add ecx, 4
add edx, 4
jmp 0x408005
movzx eax, byte [edx]
movzx edi, byte [ecx]
sub eax, edi
jne 0x408047
movzx eax, byte [edx + 1]
movzx edi, byte [ecx + 1]
sub eax, edi
jne 0x408047
movzx eax, byte [edx + 2]
movzx edi, byte [ecx + 2]
sub eax, edi
jne 0x408047
movzx eax, byte [edx + 3]
movzx edx, byte [ecx + 3]
sub eax, edx
sar eax, 0x1f
or eax, 1
jmp 0x408051
xor eax, eax
test eax, eax
jne 0x407fe1
movzx edi, word [esi + 0x24f]
push edi
lea eax, [esi + 0x4f]
push eax
lea ecx, [ebp - 0x240]
push ecx
call fcn.004d57a0
add esp, 0xc
push edi
mov ecx, ebx
lea edi, [ebp - 0x240]
call fcn.00415140
add esp, 4
lea edx, [ebp - 0x3c]
push edx
movzx eax, word [esi + 0x24f]
push eax
mov ecx, edi
push ecx
call fcn.004891d0
add esp, 0xc
mov eax, 0x20
lea ecx, [esi + 0x27c]
lea edx, [ebp - 0x3c]
cmp eax, 4
jb 0x4080f0
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x4080bc
sub eax, 4
add ecx, 4
add edx, 4
jmp 0x4080a6
movzx eax, byte [edx]
movzx edi, byte [ecx]
sub eax, edi
jne 0x4080e8
movzx eax, byte [edx + 1]
movzx edi, byte [ecx + 1]
sub eax, edi
jne 0x4080e8
movzx eax, byte [edx + 2]
movzx edi, byte [ecx + 2]
sub eax, edi
jne 0x4080e8
movzx eax, byte [edx + 3]
movzx edx, byte [ecx + 3]
sub eax, edx
sar eax, 0x1f
or eax, 1
jmp 0x4080f2
xor eax, eax
test eax, eax
je 0x408102
mov dword [ebp - 0x2244], 0xc0000102
jmp 0x408138
mov eax, dword [ebp - 0x2250]
test eax, eax
je 0x408138
movzx edi, word [esi + 0x24f]
push edi
lea ecx, [ebp - 0x240]
push ecx
push eax
call fcn.004d57a0
add esp, 0xc
mov edx, dword [ebp - 0x2248]
mov dword [edx], edi
jmp 0x408138
mov dword [ebp - 0x2244], 0xc0000201
mov dword [ebp - 4], 0xfffffffe
call fcn.00408166
mov eax, dword [ebp - 0x2244]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004d6555
mov esp, ebp
pop ebp
ret