Function at 0x4114e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov esi, ecx
mov eax, dword [ebp + 8]
shl eax, 9
push eax
push 0xf42
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ebx, ebx
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x41151f
push ebx
push ebx
push str.Fatal_Error___Not_able_to_allocate_a_Buffer_
call fcn.0043ac40
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov edi, eax
mov eax, dword [esi + 0x6c]
cmp eax, ebx
je 0x411579
mov ecx, dword [ebp + 0x36]
mov edx, dword [ebp + 0x2e]
mov eax, dword [ebp + 8]
push ecx
xor ecx, ecx
push edx
mov cx, word [ebp + 6]
push edi
push eax
xor edx, edx
mov dx, word [ebp + 4]
push ecx
xor eax, eax
xor ecx, ecx
mov ax, word [ebp + 2]
mov cx, word [ebp]
push edx
push eax
push ecx
call dword [esi + 0x78]
test eax, eax
jne 0x4115fb
push ebx
push ebx
push str.Extended_partition_not_accessible_
call fcn.0043ac40
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov edx, dword [ebp + 0x2e]
push ebx
push 0x200
push ebx
push edx
call fcn.0041e6c0
mov ecx, edx
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push ebx
push edx
mov dword [esp + 0x24], eax
push eax
xor eax, eax
mov ax, word [ebp]
sar ecx, 0x1f
mov ecx, dword [esi + eax*4 + 0x3b0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [ebp]
lea edx, [esp + 0x1c]
push ebx
mov dword [esp + 0x20], ebx
shl eax, 9
push edx
mov edx, dword [esi + ecx*4 + 0x3b0]
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
shl eax, 9
cmp ecx, eax
je 0x4115fb
push ebx
push ebx
push str.Extended_partition_not_accessible_
call fcn.0043ac40
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov dword [esp + 0x1c], ebx
add edi, 0x1c2
mov dword [esp + 0x10], 4
mov ebx, 1
xor eax, eax
mov al, byte [edi]
cmp eax, 0xf
ja case.0x41161b.2
jmp dword [eax*4 + 0x4117ac]
mov dword [esp + 0x1c], ebx
movzx cx, byte [edi - 1]
mov edx, dword [esi + 0x3ac]
mov word [edx + 2], cx
mov eax, dword [esi + 0x3ac]
mov cx, word [ebp]
mov word [eax], cx
mov edx, dword [esi + 0x3ac]
mov eax, dword [ebp + 0x36]
mov dword [edx + 0x36], eax
mov edx, dword [esi + 0x3ac]
movzx cx, byte [edi - 3]
mov word [edx + 4], cx
mov eax, dword [esi + 0x3ac]
mov dword [eax + 8], ebx
mov edx, dword [esi + 0x3ac]
movzx cx, byte [edi - 2]
mov word [edx + 6], cx
mov eax, dword [esi + 0x3ac]
xor ecx, ecx
mov dword [eax + 0x1a], ecx
mov al, byte [edi]
cmp al, 5
je 0x41168c
cmp al, 0xf
mov eax, ebx
jne 0x411691
mov eax, 2
mov edx, dword [esi + 0x3ac]
mov word [edx + 0xc], ax
mov al, byte [edi]
cmp al, 0xb
je 0x4116a9
cmp al, 0xc
je 0x4116a9
xor eax, eax
jmp 0x4116ae
mov eax, 9
mov edx, dword [esi + 0x3ac]
mov word [edx + 0xe], ax
mov al, byte [edi]
cmp al, 7
jne 0x4116ca
mov eax, dword [esi + 0x3ac]
mov word [eax + 0xe], 0xc
mov al, byte [edi]
cmp al, 5
je 0x4116e7
cmp al, 0xf
je 0x4116e7
mov edx, dword [edi + 4]
mov eax, dword [esi + 0x3a4]
add edx, eax
mov eax, dword [esi + 0x3a0]
jmp 0x4116f6
mov eax, dword [edi + 4]
mov edx, dword [esi + 0x3a4]
mov dword [esi + 0x3a0], eax
add edx, eax
mov eax, dword [esi + 0x3ac]
mov dword [eax + 0x2e], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x3ac]
cmp eax, ecx
je 0x411721
mov dword [edx + 0x1a], ebx
mov eax, dword [esi + 0x3ac]
mov dword [eax + 0x2a], 0xffffffff
jmp 0x411724
mov dword [edx + 0x1a], ecx
mov eax, dword [esi + 0x3ac]
cmp word [eax + 0xc], bx
jne 0x411756
cmp dword [esi + 0x6c], ecx
je 0x41173c
cmp word [eax + 0xe], 0xc
je 0x411756
mov ecx, dword [esi + 0x20c]
mov dword [esi + ecx*4 + 0x210], eax
mov eax, dword [esi + 0x20c]
inc eax
mov dword [esi + 0x20c], eax
mov eax, dword [esi + 0x3ac]
add eax, 0x3e
mov dword [esi + 0x3ac], eax
mov ecx, eax
mov al, byte [edi]
cmp al, 5
je 0x411771
cmp al, 0xf
jne 0x41177c
add ecx, 0xffffffc2
push ecx
mov ecx, esi
call fcn.004114e0
add edi, 0x10
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x411612
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4