Function at 0x42d4e8
Capabilities:
Read file on windows

Disassembly:
push ebp
push esp
pop ebp
mov eax, 0x1024
call fcn.00433250
mov eax, dword [0x444690]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.0042a77f
xor edi, edi
mov esi, eax
pop ecx
mov dword [ebp - 0x1018], esi
cmp dword [ebx + 4], edi
jge 0x42d51e
mov dword [ebx + 4], edi
push 1
push edi
push edi
push esi
call fcn.0042d893
add esp, 0x10
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x100c], edx
cmp edx, edi
jg 0x42d54b
jl 0x42d541
cmp eax, edi
jae 0x42d54b
or eax, 0xffffffff
or edx, eax
jmp 0x42d884
push esi
pop eax
sar eax, 5
push esi
pop ecx
mov esi, dword [eax*4 + 0x47b778]
and ecx, 0x1f
shl ecx, 6
mov dword [ebp - 0x1014], eax
mov al, byte [esi + ecx + 0x24]
add al, al
sar al, 1
test dword [ebx + 0xc], 0x108
mov byte [ebp - 0x1005], al
mov eax, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], ecx
jne 0x42d5a5
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x1010]
mov edi, dword [ebp - 0x100c]
cdq
sub ecx, eax
sbb edi, edx
push ecx
pop eax
push edi
pop edx
jmp 0x42d884
mov edi, dword [ebx]
mov esi, edi
sub esi, dword [ebx + 8]
test byte [ebx + 0xc], 3
je 0x42d746
cmp byte [ebp - 0x1005], 1
jne 0x42d707
mov eax, dword [ebp - 0x1014]
mov edx, dword [eax*4 + 0x47b778]
mov eax, dword [ebp - 0x1010]
cmp dword [edx + ecx + 0x30], 0
mov edx, dword [ebp - 0x100c]
je 0x42d707
shr esi, 1
cmp dword [ebx + 4], 0
je 0x42d884
mov edx, dword [ebp - 0x1014]
mov ebx, dword [ebp - 0x1018]
mov eax, dword [edx*4 + 0x47b778]
push 0
push dword [eax + ecx + 0x2c]
push dword [eax + ecx + 0x28]
push ebx
call fcn.0042d893
mov edi, eax
mov eax, dword [ebp - 0x1014]
add esp, 0x10
mov ecx, dword [eax*4 + 0x47b778]
mov eax, dword [ebp - 0x1020]
mov dword [ebp - 0x1024], edi
mov dword [ebp - 0x101c], edx
cmp edi, dword [ecx + eax + 0x28]
jne 0x42d541
cmp edx, dword [ecx + eax + 0x2c]
jne 0x42d541
push 0
lea edx, [ebp - 0x1018]
push edx
push 0x1000
lea edx, [ebp - 0x1004]
push edx
push dword [ecx + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42d541
mov edi, dword [ebp - 0x100c]
mov ecx, dword [ebp - 0x1010]
push 0
push edi
push ecx
push ebx
call fcn.0042d893
add esp, 0x10
test edx, edx
jg 0x42d69f
jl 0x42d541
test eax, eax
jb 0x42d541
mov eax, dword [ebp - 0x1018]
cmp esi, eax
ja 0x42d541
lea ecx, [ebp - 0x1004]
or esi, esi
je 0x42d6ea
push ecx
pop edx
add edx, eax
dec esi
cmp ecx, edx
jae 0x42d6ea
mov al, byte [ecx]
cmp al, 0xd
jne 0x42d6d9
lea eax, [edx - 1]
cmp ecx, eax
jae 0x42d6e5
lea eax, [ecx + 1]
cmp byte [eax], 0xa
jne 0x42d6e5
mov ecx, eax
jmp 0x42d6e5
movzx eax, al
movsx eax, byte [eax + 0x4453b0]
add ecx, eax
inc ecx
test esi, esi
jne 0x42d6bb
lea eax, [ebp - 0x1004]
sub ecx, eax
sub edx, edx
add ecx, dword [ebp - 0x1024]
adc edx, dword [ebp - 0x101c]
mov eax, ecx
jmp 0x42d884
mov edx, dword [ebp - 0x1014]
mov eax, dword [edx*4 + 0x47b778]
mov edx, dword [ebp - 0x100c]
test byte [eax + ecx + 4], 0x80
mov eax, dword [ebp - 0x1010]
je 0x42d737
mov ecx, dword [ebx + 8]
jmp 0x42d733
cmp byte [ecx], 0xa
jne 0x42d732
inc esi
inc ecx
cmp ecx, edi
jb 0x42d72c
mov ecx, eax
or ecx, edx
jne 0x42d75c
mov eax, esi
sub edx, edx
jmp 0x42d884
test byte [ebx + 0xc], 0x80
jne 0x42d737
call fcn.00423be0
mov dword [eax], 0x16
jmp 0x42d541
test byte [ebx + 0xc], 1
je 0x42d86f
cmp dword [ebx + 4], 0
jne 0x42d773
xor esi, esi
jmp 0x42d86f
mov edx, dword [ebp - 0x1014]
sub edi, dword [ebx + 8]
mov eax, dword [edx*4 + 0x47b778]
mov ecx, dword [ebp - 0x1020]
add edi, dword [ebx + 4]
test byte [eax + ecx + 4], 0x80
mov eax, dword [ebp - 0x1010]
mov edx, dword [ebp - 0x100c]
je 0x42d859
push 2
push 0
push 0
push dword [ebp - 0x1018]
call fcn.0042d893
mov ecx, dword [ebp - 0x1010]
add esp, 0x10
mov dword [ebp - 0x101c], edx
mov edx, dword [ebp - 0x100c]
cmp eax, ecx
jne 0x42d7f1
cmp dword [ebp - 0x101c], edx
jne 0x42d7f1
mov eax, dword [ebx + 8]
lea ecx, [eax + edi]
jmp 0x42d7e4
cmp byte [eax], 0xa
jne 0x42d7e3
inc edi
inc eax
cmp eax, ecx
jb 0x42d7dd
test dword [ebx + 0xc], 0x2000
jmp 0x42d850
push 0
push edx
push ecx
push dword [ebp - 0x1018]
call fcn.0042d893
add esp, 0x10
or edx, edx
jg 0x42d815
jl 0x42d541
test eax, eax
jb 0x42d541
mov eax, 0x200
cmp edi, eax
ja 0x42d82f
test byte [ebx + 0xc], 8
je 0x42d82f
test dword [ebx + 0xc], 0x400
push eax
pop edi
je 0x42d832
mov edi, dword [ebx + 0x18]
mov eax, dword [ebp - 0x1014]
mov ecx, dword [ebp - 0x1020]
mov eax, dword [eax*4 + 0x47b778]
mov edx, dword [ebp - 0x100c]
test byte [eax + ecx + 4], 4
mov eax, dword [ebp - 0x1010]
je 0x42d859
inc edi
cmp byte [ebp - 0x1005], 1
jne 0x42d864
shr edi, 1
sub eax, edi
sbb edx, 0
mov dword [ebp - 0x100c], edx
cmp byte [ebp - 0x1005], 1
jne 0x42d87a
shr esi, 1
xor edx, edx
add eax, esi
adc edx, dword [ebp - 0x100c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fd32
leave
ret