Function at 0x41eaf8
Capabilities:
Read file on windows

Disassembly:
push ebp
push esp
pop ebp
mov eax, 0x1024
call fcn.00423c80
mov eax, dword [0x43481c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.0041bf0a
sub edi, edi
push eax
pop esi
pop ecx
mov dword [ebp - 0x1018], esi
cmp dword [ebx + 4], edi
jge 0x41eb2e
mov dword [ebx + 4], edi
push 1
push edi
push edi
push esi
call fcn.0041eea3
add esp, 0x10
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x100c], edx
cmp edx, edi
jg 0x41eb5b
jl 0x41eb51
cmp eax, edi
jae 0x41eb5b
or eax, 0xffffffff
or edx, eax
jmp 0x41ee94
mov eax, esi
sar eax, 5
push esi
pop ecx
mov esi, dword [eax*4 + 0x46bf08]
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 0x41ebb5
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
mov edx, edi
jmp 0x41ee94
mov edi, dword [ebx]
mov esi, edi
sub esi, dword [ebx + 8]
test byte [ebx + 0xc], 3
je 0x41ed56
cmp byte [ebp - 0x1005], 1
jne 0x41ed17
mov eax, dword [ebp - 0x1014]
mov edx, dword [eax*4 + 0x46bf08]
mov eax, dword [ebp - 0x1010]
cmp dword [edx + ecx + 0x30], 0
mov edx, dword [ebp - 0x100c]
je 0x41ed17
shr esi, 1
cmp dword [ebx + 4], 0
je 0x41ee94
mov edx, dword [ebp - 0x1014]
mov ebx, dword [ebp - 0x1018]
mov eax, dword [edx*4 + 0x46bf08]
push 0
push dword [eax + ecx + 0x2c]
push dword [eax + ecx + 0x28]
push ebx
call fcn.0041eea3
mov edi, eax
mov eax, dword [ebp - 0x1014]
add esp, 0x10
mov ecx, dword [eax*4 + 0x46bf08]
mov eax, dword [ebp - 0x1020]
mov dword [ebp - 0x1024], edi
mov dword [ebp - 0x101c], edx
cmp edi, dword [ecx + eax + 0x28]
jne 0x41eb51
cmp edx, dword [ecx + eax + 0x2c]
jne 0x41eb51
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]
or eax, eax
je 0x41eb51
mov edi, dword [ebp - 0x100c]
mov ecx, dword [ebp - 0x1010]
push 0
push edi
push ecx
push ebx
call fcn.0041eea3
add esp, 0x10
or edx, edx
jg 0x41ecaf
jl 0x41eb51
test eax, eax
jb 0x41eb51
mov eax, dword [ebp - 0x1018]
cmp esi, eax
ja 0x41eb51
lea ecx, [ebp - 0x1004]
or esi, esi
je 0x41ecfa
mov edx, ecx
add edx, eax
dec esi
cmp ecx, edx
jae 0x41ecfa
mov al, byte [ecx]
cmp al, 0xd
jne 0x41ece9
lea eax, [edx - 1]
cmp ecx, eax
jae 0x41ecf5
lea eax, [ecx + 1]
cmp byte [eax], 0xa
jne 0x41ecf5
mov ecx, eax
jmp 0x41ecf5
movzx eax, al
movsx eax, byte [eax + 0x435370]
add ecx, eax
inc ecx
or esi, esi
jne 0x41eccb
lea eax, [ebp - 0x1004]
sub ecx, eax
sub edx, edx
add ecx, dword [ebp - 0x1024]
adc edx, dword [ebp - 0x101c]
mov eax, ecx
jmp 0x41ee94
mov edx, dword [ebp - 0x1014]
mov eax, dword [edx*4 + 0x46bf08]
mov edx, dword [ebp - 0x100c]
test byte [eax + ecx + 4], 0x80
mov eax, dword [ebp - 0x1010]
je 0x41ed47
mov ecx, dword [ebx + 8]
jmp 0x41ed43
cmp byte [ecx], 0xa
jne 0x41ed42
inc esi
inc ecx
cmp ecx, edi
jb 0x41ed3c
mov ecx, eax
or ecx, edx
jne 0x41ed6c
mov eax, esi
sub edx, edx
jmp 0x41ee94
test byte [ebx + 0xc], 0x80
jne 0x41ed47
call fcn.004169c1
mov dword [eax], 0x16
jmp 0x41eb51
test byte [ebx + 0xc], 1
je 0x41ee7f
cmp dword [ebx + 4], 0
jne 0x41ed83
xor esi, esi
jmp 0x41ee7f
mov edx, dword [ebp - 0x1014]
sub edi, dword [ebx + 8]
mov eax, dword [edx*4 + 0x46bf08]
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 0x41ee69
push 2
push 0
push 0
push dword [ebp - 0x1018]
call fcn.0041eea3
mov ecx, dword [ebp - 0x1010]
add esp, 0x10
mov dword [ebp - 0x101c], edx
mov edx, dword [ebp - 0x100c]
cmp eax, ecx
jne 0x41ee01
cmp dword [ebp - 0x101c], edx
jne 0x41ee01
mov eax, dword [ebx + 8]
lea ecx, [eax + edi]
jmp 0x41edf4
cmp byte [eax], 0xa
jne 0x41edf3
inc edi
inc eax
cmp eax, ecx
jb 0x41eded
test dword [ebx + 0xc], 0x2000
jmp 0x41ee60
push 0
push edx
push ecx
push dword [ebp - 0x1018]
call fcn.0041eea3
add esp, 0x10
or edx, edx
jg 0x41ee25
jl 0x41eb51
or eax, eax
jb 0x41eb51
mov eax, 0x200
cmp edi, eax
ja 0x41ee3f
test byte [ebx + 0xc], 8
je 0x41ee3f
test dword [ebx + 0xc], 0x400
push eax
pop edi
je 0x41ee42
mov edi, dword [ebx + 0x18]
mov eax, dword [ebp - 0x1014]
mov ecx, dword [ebp - 0x1020]
mov eax, dword [eax*4 + 0x46bf08]
mov edx, dword [ebp - 0x100c]
test byte [eax + ecx + 4], 4
mov eax, dword [ebp - 0x1010]
je 0x41ee69
inc edi
cmp byte [ebp - 0x1005], 1
jne 0x41ee74
shr edi, 1
sub eax, edi
sbb edx, 0
mov dword [ebp - 0x100c], edx
cmp byte [ebp - 0x1005], 1
jne 0x41ee8a
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.00411784
leave
ret