Function at 0x427320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
xor edx, edx
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov esi, dword [eax + 0x24]
test esi, esi
jne 0x427344
mov eax, 0x4e39
pop esi
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esi + 0xd8]
test esi, esi
je 0x427338
cmp dword [esi], edx
jne 0x42735e
mov eax, 0x12
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x42736e
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
xor eax, eax
push ebx
push edi
mov dword [esi + 0x14], ecx
cmp dword [esi + 0x258], edx
je 0x42749d
mov edi, dword [esi + 8]
mov edx, edi
add edx, dword [esi + 0x238]
adc eax, dword [esi + 0x23c]
xor ebx, ebx
cmp ebx, eax
jl 0x4273af
jg 0x4273a4
cmp ecx, edx
jbe 0x4273af
mov eax, dword [esi + 0x238]
add eax, edi
mov dword [esi + 0x14], eax
xor edx, edx
cmp dword [esi + 0x14], 0
jbe 0x427705
cmp dword [esi + 8], 0
mov ebx, 0xfffffffd
jne 0x427572
mov ecx, dword [esi + 4]
xor eax, eax
xor ebx, ebx
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], ebx
test ecx, ecx
je 0x4273e7
mov eax, dword [esi]
sub eax, ecx
add eax, 0x10000
mov dword [ebp + 8], eax
mov edi, 0x10000
sub edi, eax
mov dword [ebp + 0xc], edi
test eax, eax
je 0x427401
push eax
push ecx
push dword [esi]
call fcn.004480a0
add esp, 0xc
cmp dword [esi + 0x23c], ebx
jg 0x42741c
jl 0x427413
cmp dword [esi + 0x238], edi
jae 0x42741c
mov edi, dword [esi + 0x238]
mov dword [ebp + 0xc], edi
test edi, edi
je 0x42750f
jmp 0x427430
mov ecx, dword [esi + 0x250]
mov eax, dword [ebp - 8]
add ecx, dword [esi + 0x200]
mov edx, dword [esi + 0x254]
adc edx, dword [esi + 0x204]
mov eax, dword [eax + 8]
test eax, eax
je 0x42746c
cmp eax, 0xffffffff
je 0x42746c
push 0
push 0
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4276dd
mov eax, dword [ebp - 8]
mov ecx, dword [esi]
add ecx, ebx
add ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
test edx, edx
je 0x4274c5
cmp edx, 0xffffffff
je 0x4274c5
lea edi, [eax + 0x20]
mov eax, dword [ebp + 0xc]
push 0
push edi
sub eax, ebx
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi]
mov edi, dword [ebp + 0xc]
jmp 0x4274c7
cmp eax, dword [esi + 0x244]
jl 0x4273b1
jg 0x4274b7
cmp ecx, dword [esi + 0x240]
jbe 0x4273b1
mov eax, dword [esi + 0x240]
mov dword [esi + 0x14], eax
jmp 0x4273b1
xor eax, eax
add ebx, eax
add dword [esi + 0x200], eax
mov dword [ebp - 0xc], ebx
adc dword [esi + 0x204], 0
test eax, eax
jne 0x427507
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4276dd
mov ecx, dword [ebp - 8]
call fcn.00417c40
test eax, eax
jne 0x427707
mov dword [esi + 0x200], eax
mov dword [esi + 0x204], eax
cmp ebx, edi
jne 0x427430
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
cmp dword [eax + 0xdc], 0
je 0x427553
cmp dword [eax + 0x64], 0x63
jne 0x4276eb
mov ebx, dword [eax + 0xd8]
mov edi, dword [esi]
add ebx, 0x3c
lea eax, [ebx + 0x114]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0043f1a0
push ebx
push dword [ebp + 0xc]
push edi
call fcn.0043d590
mov ebx, dword [ebp - 0xc]
add esp, 0x18
sub dword [esi + 0x238], ebx
mov eax, dword [esi]
sbb dword [esi + 0x23c], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
add eax, ebx
mov ebx, 0xfffffffd
mov dword [esi + 8], eax
cmp dword [esi + 0x248], 0
je 0x427638
cmp dword [esi + 0x258], 0
jne 0x427638
mov eax, dword [esi + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x10]
mov dword [ebp + 0xc], eax
lea eax, [esi + 4]
push 2
push eax
call fcn.00442ea0
mov edi, eax
add esp, 8
test edi, edi
js 0x4275b3
cmp dword [esi + 0x1c], 0
cmovne edi, ebx
mov ebx, dword [esi + 0x18]
xor eax, eax
mov ecx, ebx
sub ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
sbb eax, eax
add dword [esi + 0x228], ecx
adc dword [esi + 0x22c], eax
sub dword [esi + 0x240], ecx
sbb dword [esi + 0x244], eax
mov eax, dword [esi + 0x230]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42760b
cmp dword [0x4761e0], 0
je 0x4275fe
call fcn.0043f9e0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
push ecx
push eax
push dword [ebp - 0x10]
call fcn.0043cd50
add esp, 0xc
sub ebx, dword [ebp + 8]
mov edx, dword [ebp - 4]
add edx, ebx
mov dword [esi + 0x230], eax
mov dword [ebp - 4], edx
cmp edi, 1
je 0x427705
test edi, edi
je 0x4273b1
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esi + 8]
test edi, edi
jne 0x427651
mov eax, dword [esi + 0x238]
or eax, dword [esi + 0x23c]
je 0x4276f9
cmp dword [esi + 0x14], edi
cmovb edi, dword [esi + 0x14]
xor edx, edx
test edi, edi
je 0x427671
mov edi, edi
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov al, byte [edx + eax]
mov byte [edx + ecx], al
inc edx
cmp edx, edi
jb 0x427660
add dword [esi + 0x228], edi
mov ebx, dword [esi + 0x10]
adc dword [esi + 0x22c], 0
sub dword [esi + 0x240], edi
mov eax, dword [esi + 0x230]
sbb dword [esi + 0x244], 0
mov dword [ebp + 0xc], eax
test ebx, ebx
jne 0x42769f
xor eax, eax
jmp 0x4276bb
cmp dword [0x4761e0], 0
je 0x4276b0
call fcn.0043f9e0
mov eax, dword [ebp + 0xc]
push edi
push ebx
push eax
call fcn.0043cd50
add esp, 0xc
mov edx, dword [ebp - 4]
sub dword [esi + 8], edi
sub dword [esi + 0x14], edi
add dword [esi + 0x10], edi
add dword [esi + 4], edi
add dword [esi + 0x18], edi
add edx, edi
mov dword [esi + 0x230], eax
mov dword [ebp - 4], edx
jmp 0x4273b1
pop edi
pop ebx
mov eax, 0x4e20
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
pop ebx
mov eax, 0x32
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, edx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8