Function at 0x42439d
Capabilities:
Read file on windows

Disassembly:
mov ebx, ebx
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0041dc00
mov eax, dword [0x43dfc0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push esi
mov esi, dword [ebp + 8]
push ebx
push esi
call fcn.0042303f
mov ebx, eax
xor eax, eax
pop ecx
mov dword [ebp - 0x1018], ebx
cmp dword [esi + 4], eax
jge 0x4243d5
mov dword [esi + 4], eax
push 1
push eax
push eax
push ebx
call fcn.004247d9
sub esp, 0xfffffff0
mov edi, eax
mov dword [ebp - 0x1014], edi
mov dword [ebp - 0x1010], edx
test edx, edx
jg 0x424404
jl 0x4243fa
or edi, edi
jae 0x424404
or eax, 0xffffffff
or edx, eax
jmp 0x4246d8
mov eax, ebx
sar eax, 5
lea eax, [eax*4 + 0x440660]
and ebx, 0x1f
mov dword [ebp - 0x101c], eax
mov eax, dword [eax]
shl ebx, 6
add eax, ebx
mov cl, byte [eax + 0x24]
add cl, cl
sar cl, 1
test dword [esi + 0xc], 0x108
mov byte [ebp - 0x1005], cl
jne 0x42444d
mov eax, dword [esi + 4]
mov ebx, dword [ebp - 0x1010]
cdq
sub edi, eax
sbb ebx, edx
mov eax, edi
mov edx, ebx
jmp 0x4246d8
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
mov edi, ecx
sub edi, dword [esi + 8]
mov dword [ebp - 0x100c], edi
test dl, 3
je 0x4245c1
cmp byte [ebp - 0x1005], 1
jne 0x42458d
xor edx, edx
cmp dword [eax + 0x30], edx
je 0x42458d
shr edi, 1
mov dword [ebp - 0x1020], edi
cmp dword [esi + 4], edx
jne 0x42449c
mov eax, dword [ebp - 0x1014]
mov edx, dword [ebp - 0x1010]
jmp 0x4246d8
push edx
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [ebp - 0x1018]
call fcn.004247d9
mov edi, eax
mov eax, dword [ebp - 0x101c]
mov eax, dword [eax]
sub esp, 0xfffffff0
mov esi, edx
cmp edi, dword [eax + ebx + 0x28]
jne 0x4243fa
cmp esi, dword [eax + ebx + 0x2c]
jne 0x4243fa
push 0
lea ecx, [ebp - 0x100c]
push ecx
push 0x1000
lea ecx, [ebp - 0x1004]
push ecx
push dword [eax + ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4243fa
push 0
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push dword [ebp - 0x1018]
call fcn.004247d9
sub esp, 0xfffffff0
test edx, edx
jg 0x424525
jl 0x4243fa
test eax, eax
jb 0x4243fa
mov ebx, dword [ebp - 0x100c]
mov ecx, dword [ebp - 0x1020]
cmp ecx, ebx
ja 0x4243fa
lea eax, [ebp - 0x1004]
or ecx, ecx
je 0x42457a
lea edx, [ebp + ebx - 0x1004]
dec ecx
cmp eax, edx
jae 0x42457a
mov bl, byte [eax]
cmp bl, 0xd
jne 0x424569
lea ebx, [edx - 1]
cmp eax, ebx
jae 0x424575
lea ebx, [eax + 1]
cmp byte [ebx], 0xa
jne 0x424575
mov eax, ebx
jmp 0x424575
movzx ebx, bl
movsx ebx, byte [ebx + 0x43ee70]
add eax, ebx
inc eax
or ecx, ecx
jne 0x42454a
lea ecx, [ebp - 0x1004]
sub eax, ecx
xor edx, edx
add eax, edi
adc edx, esi
jmp 0x4246d8
test byte [eax + 4], 0x80
je 0x4245a8
mov edx, dword [esi + 8]
jmp 0x4245a4
cmp byte [edx], 0xa
jne 0x4245a3
inc dword [ebp - 0x100c]
inc edx
cmp edx, ecx
jb 0x424598
mov edx, dword [ebp - 0x1014]
or edx, dword [ebp - 0x1010]
jne 0x4245d5
mov eax, dword [ebp - 0x100c]
jmp 0x4246d8
or dl, dl
js 0x4245a8
call fcn.0041ded9
mov dword [eax], 0x16
jmp 0x4243fa
test byte [esi + 0xc], 1
je 0x4246b5
mov edx, dword [esi + 4]
test edx, edx
jne 0x4245f1
and dword [ebp - 0x100c], edx
jmp 0x4246b5
sub ecx, dword [esi + 8]
test byte [eax + 4], 0x80
lea edi, [edx + ecx]
je 0x42469d
push 2
push 0
push 0
push dword [ebp - 0x1018]
call fcn.004247d9
add esp, 0x10
cmp eax, dword [ebp - 0x1014]
jne 0x424641
cmp edx, dword [ebp - 0x1010]
jne 0x424641
mov eax, dword [esi + 8]
lea ecx, [eax + edi]
jmp 0x424634
cmp byte [eax], 0xa
jne 0x424633
inc edi
inc eax
cmp eax, ecx
jb 0x42462d
test dword [esi + 0xc], 0x2000
jmp 0x42469a
push 0
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push dword [ebp - 0x1018]
call fcn.004247d9
sub esp, 0xfffffff0
or edx, edx
jg 0x42466f
jl 0x4243fa
or eax, eax
jb 0x4243fa
mov eax, 0x200
cmp edi, eax
ja 0x42468a
mov ecx, dword [esi + 0xc]
test cl, 8
je 0x42468a
mov edi, eax
test ecx, 0x400
je 0x42468d
mov edi, dword [esi + 0x18]
mov eax, dword [ebp - 0x101c]
mov eax, dword [eax]
test byte [eax + ebx + 4], 4
je 0x42469d
inc edi
cmp byte [ebp - 0x1005], 1
jne 0x4246a8
shr edi, 1
sub dword [ebp - 0x1014], edi
sbb dword [ebp - 0x1010], 0
cmp byte [ebp - 0x1005], 1
jne 0x4246c4
shr dword [ebp - 0x100c], 1
mov eax, dword [ebp - 0x100c]
xor edx, edx
add eax, dword [ebp - 0x1014]
adc edx, dword [ebp - 0x1010]
mov ecx, dword [ebp - 4]
pop ebx
pop esi
xor ecx, ebp
pop edi
call fcn.0041b771
leave
ret