Function at 0x41ecb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], eax
xor eax, eax
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x18]
mov dword [edx], ecx
mov ebx, dword [edi + 0xc]
cmp ebx, eax
je 0x41f038
push 0x1ff
push eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x31]
push eax
mov byte [esp + 0x34], 0
call sub.ntdll.dll_memset
mov ecx, 0x200
mov eax, ebx
mul ecx
add esp, 0xc
push 0
mov dword [esp + 0x28], edx
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41ef3b
mov eax, dword [edi + 4]
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x200
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ef8e
mov dl, byte [esp + 0x1ea]
test dl, dl
mov ecx, dword [esp + 0x1ee]
mov dword [edi + 0xc], 0
je 0x41edb5
cmp dl, 0xf
je 0x41edc5
cmp dl, 5
je 0x41edb5
mov eax, dword [esp + 0x18]
add dword [eax], ecx
mov ebx, dword [esp + 0x1e6]
mov dword [esi], ebx
mov ebx, dword [esp + 0x1ea]
mov dword [esi + 4], ebx
mov ebx, dword [esp + 0x1f2]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x10], 1
jmp 0x41edb9
mov eax, dword [esp + 0x18]
cmp dl, 0xf
je 0x41edc9
cmp dl, 5
jne 0x41edd9
jmp 0x41edc9
mov eax, dword [esp + 0x18]
mov edx, dword [edi + 8]
add edx, ecx
mov dword [edi + 0xc], edx
mov dword [esp + 0x14], 1
mov dl, byte [esp + 0x1fa]
test dl, dl
mov ecx, dword [esp + 0x1fe]
je 0x41ee26
cmp dl, 0xf
je 0x41ee30
cmp dl, 5
je 0x41ee26
cmp dword [esp + 0x10], 0
jne 0x41ee26
add dword [eax], ecx
mov ebx, dword [esp + 0x1f6]
mov dword [esi], ebx
mov ebx, dword [esp + 0x1fa]
mov dword [esi + 4], ebx
mov ebx, dword [esp + 0x202]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x10], 1
cmp dl, 0xf
je 0x41ee30
cmp dl, 5
jne 0x41ee40
mov edx, dword [edi + 8]
add edx, ecx
mov dword [edi + 0xc], edx
mov dword [esp + 0x14], 1
mov dl, byte [esp + 0x20a]
test dl, dl
mov ecx, dword [esp + 0x20e]
je 0x41ee8d
cmp dl, 0xf
je 0x41ee97
cmp dl, 5
je 0x41ee8d
cmp dword [esp + 0x10], 0
jne 0x41ee8d
add dword [eax], ecx
mov ebx, dword [esp + 0x206]
mov dword [esi], ebx
mov ebx, dword [esp + 0x20a]
mov dword [esi + 4], ebx
mov ebx, dword [esp + 0x212]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x10], 1
cmp dl, 0xf
je 0x41ee97
cmp dl, 5
jne 0x41eea7
mov edx, dword [edi + 8]
add edx, ecx
mov dword [edi + 0xc], edx
mov dword [esp + 0x14], 1
mov dl, byte [esp + 0x21a]
test dl, dl
mov ecx, dword [esp + 0x21e]
je 0x41eef4
cmp dl, 0xf
je 0x41eefe
cmp dl, 5
je 0x41eef4
cmp dword [esp + 0x10], 0
jne 0x41eef4
add dword [eax], ecx
mov eax, dword [esp + 0x216]
mov dword [esi], eax
mov eax, dword [esp + 0x21a]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x222]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
mov dword [esp + 0x10], 1
cmp dl, 0xf
je 0x41eefe
cmp dl, 5
jne 0x41ef0e
mov edx, dword [edi + 8]
add edx, ecx
mov dword [edi + 0xc], edx
mov dword [esp + 0x14], 1
mov eax, dword [edi + 0x14]
cmp eax, 0x64
lea ecx, [eax + 1]
mov dword [edi + 0x14], ecx
ja 0x41efde
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x41f03a
cmp dword [esp + 0x14], eax
je 0x41f03a
jmp 0x41ece3
test byte [0x4f1904], 1
jne 0x41ef6c
or dword [0x4f1904], 1
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
push 0x66
call fcn.0041ea10
mov edx, dword [0x4f18dc]
push eax
mov eax, dword [edx + 8]
push str._s:_Set_file_pointer_to_fail_in_QueryExtTableNextItem.
push 0x4f18dc
call eax
jmp 0x41f035
test byte [0x4f1904], 1
jne 0x41efbf
or dword [0x4f1904], 1
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
push 0x6c
call fcn.0041ea10
mov ecx, dword [0x4f18dc]
mov edx, dword [ecx + 8]
push eax
push str._s:_Read_file_to_fail_in_QueryExtTableNextItem.
push 0x4f18dc
call edx
jmp 0x41f035
test byte [0x4f1904], 1
mov dword [edi + 0x14], 0
jne 0x41f016
or dword [0x4f1904], 1
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
push 0x8c
call fcn.0041ea10
push eax
mov eax, dword [0x4f18dc]
mov ecx, dword [eax + 8]
push str._s:_Partition_table_is_a_loop
push 0x4f18dc
call ecx
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00462b77
mov esp, ebp
pop ebp
ret 8