Function at 0x402dc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x21c
mov eax, dword [0x40d204]
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x220]
test eax, eax
push esi
jl 0x40313a
mov esi, dword [esp + 0x228]
test esi, esi
je 0x40313a
push ebx
push edi
push eax
push str..PHYSICALDRIVE_d
lea eax, [esp + 0x18]
push 0x14
push eax
xor edi, edi
call fcn.00402810
add esp, 0x10
push edi
push 0xa0000000
push 3
push edi
push 3
push 0x80000000
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403122
push edi
lea edx, [esp + 0x10]
push edx
push 0x200
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40311b
cmp dword [esp + 0xc], 0x200
jne 0x40311b
push 0x1be
lea ecx, [esp + 0x28]
push ecx
push esi
call fcn.00403e60
push 2
lea edx, [esp + 0x232]
push edx
lea eax, [esi + 0x210]
push eax
call fcn.00403e60
mov al, byte [esp + 0x1fc]
mov cl, byte [esp + 0x1fa]
mov dl, byte [esp + 0x1fb]
mov byte [esi + 0x1c0], cl
mov cl, al
and al, 0xc0
mov byte [esi + 0x1c4], dl
movzx dx, al
movzx ax, byte [esp + 0x1fd]
and cl, 0x3f
mov byte [esi + 0x1c5], cl
add esp, 0x18
lea ecx, [eax + edx*4]
mov al, byte [esp + 0x1e7]
mov dl, byte [esp + 0x1e6]
mov byte [esi + 0x1ca], al
mov al, byte [esp + 0x1e8]
mov word [esi + 0x1c2], cx
mov cl, al
and al, 0xc0
mov byte [esi + 0x1c6], dl
movzx dx, al
movzx ax, byte [esp + 0x1e9]
and cl, 0x3f
mov byte [esi + 0x1cb], cl
lea ecx, [eax + edx*4]
mov eax, dword [esp + 0x1ee]
mov edx, dword [esp + 0x1ea]
mov word [esi + 0x1c8], cx
mov cl, byte [esp + 0x1f2]
mov dword [esi + 0x1d0], eax
mov al, byte [esp + 0x1f4]
mov byte [esi + 0x1d4], cl
mov cl, al
and al, 0xc0
mov dword [esi + 0x1cc], edx
mov dl, byte [esp + 0x1f3]
mov byte [esi + 0x1d8], dl
movzx dx, al
movzx ax, byte [esp + 0x1f5]
and cl, 0x3f
mov byte [esi + 0x1d9], cl
lea ecx, [eax + edx*4]
mov al, byte [esp + 0x1f7]
mov dl, byte [esp + 0x1f6]
mov byte [esi + 0x1de], al
mov al, byte [esp + 0x1f8]
mov word [esi + 0x1d6], cx
mov cl, al
and al, 0xc0
mov byte [esi + 0x1da], dl
movzx dx, al
movzx ax, byte [esp + 0x1f9]
and cl, 0x3f
mov byte [esi + 0x1df], cl
lea ecx, [eax + edx*4]
mov eax, dword [esp + 0x1fe]
mov edx, dword [esp + 0x1fa]
mov word [esi + 0x1dc], cx
mov cl, byte [esp + 0x202]
mov dword [esi + 0x1e4], eax
mov al, byte [esp + 0x204]
mov byte [esi + 0x1e8], cl
mov cl, al
mov dword [esi + 0x1e0], edx
mov dl, byte [esp + 0x203]
and cl, 0x3f
mov byte [esi + 0x1ec], dl
mov byte [esi + 0x1ed], cl
and al, 0xc0
movzx dx, al
movzx ax, byte [esp + 0x205]
mov edi, 1
lea ecx, [eax + edx*4]
mov al, byte [esp + 0x207]
mov dl, byte [esp + 0x206]
mov byte [esi + 0x1f2], al
mov al, byte [esp + 0x208]
mov word [esi + 0x1ea], cx
mov cl, al
and al, 0xc0
mov byte [esi + 0x1ee], dl
movzx dx, al
movzx ax, byte [esp + 0x209]
and cl, 0x3f
mov byte [esi + 0x1f3], cl
lea ecx, [eax + edx*4]
mov eax, dword [esp + 0x20e]
mov edx, dword [esp + 0x20a]
mov word [esi + 0x1f0], cx
mov cl, byte [esp + 0x212]
mov dword [esi + 0x1f8], eax
mov al, byte [esp + 0x214]
mov byte [esi + 0x1fc], cl
mov cl, al
and al, 0xc0
mov dword [esi + 0x1f4], edx
mov dl, byte [esp + 0x213]
mov byte [esi + 0x200], dl
movzx dx, al
movzx ax, byte [esp + 0x215]
and cl, 0x3f
mov byte [esi + 0x201], cl
lea ecx, [eax + edx*4]
mov al, byte [esp + 0x217]
mov dl, byte [esp + 0x216]
mov byte [esi + 0x206], al
mov al, byte [esp + 0x218]
mov word [esi + 0x1fe], cx
mov cl, al
and cl, 0x3f
and al, 0xc0
mov byte [esi + 0x202], dl
movzx dx, al
movzx ax, byte [esp + 0x219]
mov byte [esi + 0x207], cl
lea ecx, [eax + edx*4]
mov edx, dword [esp + 0x21a]
mov eax, dword [esp + 0x21e]
mov word [esi + 0x204], cx
mov dword [esi + 0x208], edx
mov dword [esi + 0x20c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x218]
call fcn.00403e52
add esp, 0x21c
ret
mov ecx, dword [esp + 0x21c]
xor eax, eax
pop esi
call fcn.00403e52
add esp, 0x21c
ret