Function at 0x4111b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3a8]
mov dword [esi + 0x3a0], ebp
mov dword [esi + 0x3a4], ebp
mov ecx, dword [eax + 8]
shl ecx, 9
push ecx
push 0xf42
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebp
mov dword [esp + 0x18], eax
jne 0x4111fb
push ebp
push ebp
push str.Fatal_Error___Not_able_to_allocate_a_Buffer_
call fcn.0043ac40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov ebx, eax
mov eax, dword [esi + 0x6c]
cmp eax, ebp
je 0x411258
mov eax, dword [esi + 0x3a8]
mov edx, dword [eax + 0x36]
mov ecx, dword [eax + 0x2e]
push edx
mov edx, dword [eax + 8]
push ecx
push ebx
push edx
xor ecx, ecx
mov cx, word [eax + 6]
xor edx, edx
mov dx, word [eax + 4]
push ecx
push edx
xor ecx, ecx
mov cx, word [eax + 2]
xor edx, edx
mov dx, word [eax]
push ecx
push edx
call dword [esi + 0x78]
test eax, eax
jne 0x4112e8
push ebp
push ebp
push str.Partition_table_not_accessible_
call fcn.0043ac40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edi, dword [esi + 0x3a8]
push ebp
push 0x200
push ebp
mov eax, dword [edi + 0x2e]
push eax
call fcn.0041e6c0
mov ecx, edx
mov dword [esp + 0x14], edx
lea edx, [esp + 0x14]
push ebp
push edx
mov dword [esp + 0x18], eax
push eax
xor eax, eax
mov ax, word [edi]
sar ecx, 0x1f
mov ecx, dword [esi + eax*4 + 0x3b0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x3a8]
lea edx, [esp + 0x10]
push ebp
push edx
mov dword [esp + 0x18], ebp
mov ecx, dword [eax + 8]
xor edx, edx
mov dx, word [eax]
shl ecx, 9
mov eax, dword [esi + edx*4 + 0x3b0]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esi + 0x3a8]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx + 8]
shl edx, 9
cmp eax, edx
je 0x4112e8
push ebp
push ebp
push str.Partition_table_not_accessible_
call fcn.0043ac40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea edi, [ebx + 0x1c2]
mov dword [esp + 0x10], 4
mov ebx, 1
xor eax, eax
mov al, byte [edi]
cmp eax, 0xf
ja case.0x411304.2
jmp dword [eax*4 + 0x411498]
mov ebp, ebx
movzx ax, byte [edi - 1]
mov ecx, dword [esi + 0x3ac]
mov word [ecx + 2], ax
mov edx, dword [esi + 0x3a8]
mov eax, dword [esi + 0x3ac]
mov cx, word [edx]
mov word [eax], cx
mov edx, dword [esi + 0x3a8]
mov eax, dword [esi + 0x3ac]
mov ecx, dword [edx + 0x36]
mov dword [eax + 0x36], ecx
mov eax, dword [esi + 0x3ac]
movzx dx, byte [edi - 3]
mov word [eax + 4], dx
mov edx, dword [esi + 0x3ac]
movzx cx, byte [edi - 2]
mov word [edx + 6], cx
mov eax, dword [esi + 0x3ac]
mov dword [eax + 8], ebx
mov al, byte [edi]
cmp al, 5
je 0x411373
cmp al, 0xf
mov eax, ebx
jne 0x411378
mov eax, 2
mov ecx, dword [esi + 0x3ac]
test ebp, ebp
mov word [ecx + 0xc], ax
je 0x411392
mov edx, dword [esi + 0x3ac]
mov word [edx + 0xc], 0xb
mov al, byte [edi]
cmp al, 0xb
je 0x4113a0
cmp al, 0xc
je 0x4113a0
xor eax, eax
jmp 0x4113a5
mov eax, 9
mov ecx, dword [esi + 0x3ac]
mov word [ecx + 0xe], ax
mov al, byte [edi]
cmp al, 7
jne 0x4113c1
mov edx, dword [esi + 0x3ac]
mov word [edx + 0xe], 0xc
mov al, byte [edi]
cmp al, 5
je 0x4113e1
cmp al, 0xf
je 0x4113e1
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x3a4]
add eax, ecx
mov ecx, dword [esi + 0x3ac]
mov dword [ecx + 0x2e], eax
jmp 0x4113f3
mov eax, dword [edi + 4]
mov edx, dword [esi + 0x3ac]
mov dword [esi + 0x3a4], eax
mov dword [edx + 0x2e], eax
test ebp, ebp
je 0x411402
mov eax, dword [esi + 0x3ac]
mov dword [eax + 0x1a], ebx
jmp 0x41140f
mov ecx, dword [esi + 0x3ac]
mov dword [ecx + 0x1a], 0
mov eax, dword [esi + 0x3ac]
cmp word [eax + 0xc], bx
jne 0x411443
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x411429
cmp word [eax + 0xe], 0xc
je 0x411443
mov edx, dword [esi + 0x20c]
mov dword [esi + edx*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 0x41145e
cmp al, 0xf
jne 0x411469
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 0x4112fb
mov esi, dword [esp + 0x18]
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, 0xc
ret