Function at 0x407eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x58c800
push 0x4fb430
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2238
call fcn.004fa800
mov eax, dword [0x5954a0]
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.004f8090
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 0x4080fe
cmp dword [ebp - 0x224c], 0x2000
jb 0x4080fe
mov eax, esi
call fcn.004152f0
test eax, eax
je 0x4080fe
mov eax, dword [ebp - 0x2228]
shr eax, 8
mov ecx, ebx
cmp al, 1
jne 0x407fc0
lea edx, [ebp - 0x240]
mov ebx, esi
call fcn.00407c70
test eax, eax
jne 0x4080d2
mov dword [ebp - 0x2244], 0xc0000101
jmp 0x408108
lea edi, [ebp - 0x3c]
call fcn.00414fb0
mov eax, 0x20
lea ecx, [ebp - 0x1fe4]
mov edx, edi
cmp eax, 4
jb 0x40801f
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x407feb
sub eax, 4
add ecx, 4
add edx, 4
jmp 0x407fd5
movzx eax, byte [edx]
movzx edi, byte [ecx]
sub eax, edi
jne 0x408017
movzx eax, byte [edx + 1]
movzx edi, byte [ecx + 1]
sub eax, edi
jne 0x408017
movzx eax, byte [edx + 2]
movzx edi, byte [ecx + 2]
sub eax, edi
jne 0x408017
movzx eax, byte [edx + 3]
movzx edx, byte [ecx + 3]
sub eax, edx
sar eax, 0x1f
or eax, 1
jmp 0x408021
xor eax, eax
test eax, eax
jne 0x407fb1
movzx edi, word [esi + 0x24f]
push edi
lea eax, [esi + 0x4f]
push eax
lea ecx, [ebp - 0x240]
push ecx
call fcn.004f8140
add esp, 0xc
push edi
mov ecx, ebx
lea edi, [ebp - 0x240]
call fcn.00415110
add esp, 4
lea edx, [ebp - 0x3c]
push edx
movzx eax, word [esi + 0x24f]
push eax
mov ecx, edi
push ecx
call fcn.004a6ac0
add esp, 0xc
mov eax, 0x20
lea ecx, [esi + 0x27c]
lea edx, [ebp - 0x3c]
cmp eax, 4
jb 0x4080c0
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x40808c
sub eax, 4
add ecx, 4
add edx, 4
jmp 0x408076
movzx eax, byte [edx]
movzx edi, byte [ecx]
sub eax, edi
jne 0x4080b8
movzx eax, byte [edx + 1]
movzx edi, byte [ecx + 1]
sub eax, edi
jne 0x4080b8
movzx eax, byte [edx + 2]
movzx edi, byte [ecx + 2]
sub eax, edi
jne 0x4080b8
movzx eax, byte [edx + 3]
movzx edx, byte [ecx + 3]
sub eax, edx
sar eax, 0x1f
or eax, 1
jmp 0x4080c2
xor eax, eax
test eax, eax
je 0x4080d2
mov dword [ebp - 0x2244], 0xc0000102
jmp 0x408108
mov eax, dword [ebp - 0x2250]
test eax, eax
je 0x408108
movzx edi, word [esi + 0x24f]
push edi
lea ecx, [ebp - 0x240]
push ecx
push eax
call fcn.004f8140
add esp, 0xc
mov edx, dword [ebp - 0x2248]
mov dword [edx], edi
jmp 0x408108
mov dword [ebp - 0x2244], 0xc0000201
mov dword [ebp - 4], 0xfffffffe
call fcn.00408136
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.004f8124
mov esp, ebp
pop ebp
ret