Function at 0x420dc0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1044
call fcn.0044f150
mov eax, dword [0x4890a0]
xor eax, esp
mov dword [esp + 0x1040], eax
mov eax, dword [esp + 0x1048]
push ebp
push esi
push edi
push 2
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], eax
xor eax, eax
push ecx
push eax
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, 0xffffffff
jne 0x420e18
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x420e25
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov edx, ebp
and edx, edi
cmp edx, 0xffffffff
jne 0x420e42
mov eax, 5
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1040]
xor ecx, esp
call fcn.00431784
add esp, 0x1044
ret
push 0
mov esi, ebp
sub esi, 0x16
lea ecx, [esp + 0x18]
mov eax, esi
push ecx
push eax
sbb edi, 0
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x420e83
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x420e7f
or eax, 0xffffffff
mov dword [esp + 0x14], eax
jmp 0x420e83
mov eax, dword [esp + 0x10]
cmp eax, esi
jne 0x420e25
cmp dword [esp + 0x14], edi
jne 0x420e25
mov edi, dword [esp + 0x34]
xor esi, esi
push esi
lea edx, [esp + 0x10]
push edx
push 0x16
push edi
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4210ca
cmp dword [esp + 0xc], 0x16
jne 0x4210ca
cmp dword [edi], 0x6054b50
je 0x421093
mov edx, dword [esp + 0x1c]
mov ecx, ebp
sub ecx, 0x10036
mov eax, edx
sbb eax, esi
cmp eax, esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
jg 0x420eec
jl 0x420ee4
cmp ecx, esi
jae 0x420eec
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov edi, ebp
sub edi, 0x1000
sbb edx, esi
cmp edx, esi
mov dword [esp + 0x3c], edx
jg 0x420f10
jl 0x420f04
cmp edi, esi
jae 0x420f10
xor edi, edi
mov dword [esp + 0x3c], esi
mov edx, dword [esp + 0x3c]
mov edi, edi
mov esi, 0x1000
mov ecx, edi
add ecx, esi
mov eax, edx
adc eax, 0
cmp eax, dword [esp + 0x1c]
jl 0x420f2e
jg 0x420f2a
cmp ecx, ebp
jbe 0x420f2e
mov esi, ebp
sub esi, edi
push 0
lea eax, [esp + 0x28]
push eax
push edi
push ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edx
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
jne 0x420f60
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x420e25
mov eax, dword [esp + 0x20]
and eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x420e25
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
lea edx, [esp + 0x54]
push edx
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4210ca
cmp esi, dword [esp + 0xc]
jne 0x4210ca
lea ebp, [esi - 0x16]
test ebp, ebp
jl 0x421037
mov edi, edi
cmp byte [esp + ebp + 0x48], 0x50
jne 0x42102e
cmp dword [esp + ebp + 0x48], 0x6054b50
jne 0x42102e
mov eax, dword [esp + ebp + 0x58]
cmp eax, 0xffffffff
je 0x42102e
push 0
lea ecx, [esp + 0x48]
push ecx
push eax
push ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [esp + 0x40], eax
cmp eax, 0xffffffff
jne 0x420fed
lea esi, [esp + 0x40]
call fcn.0041a500
jmp 0x420ff1
mov edx, dword [esp + 0x44]
and eax, edx
cmp eax, 0xffffffff
je 0x420e25
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4210ca
cmp dword [esp + 0xc], 4
jne 0x4210ca
cmp dword [esp + 0x10], 0x2014b50
je 0x421065
sub ebp, 1
jns 0x420fa0
mov eax, dword [esp + 0x3c]
mov ecx, edi
or ecx, eax
je 0x4210ad
add edi, 0xfffff040
adc eax, 0xffffffff
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
jl 0x4210ad
jg 0x42105c
cmp edi, dword [esp + 0x28]
jbe 0x4210ad
mov ebp, dword [esp + 0x18]
jmp 0x420f0a
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + ebp + 0x48]
lea eax, [esp + ebp + 0x48]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
mov ax, word [eax + 0x14]
mov dword [ecx + 0x10], edx
mov word [ecx + 0x14], ax
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1040]
xor ecx, esp
call fcn.00431784
add esp, 0x1044
ret
mov eax, 8
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1040]
xor ecx, esp
call fcn.00431784
add esp, 0x1044
ret
mov ecx, dword [esp + 0x104c]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 3
call fcn.00431784
add esp, 0x1044
ret