Function at 0x403ca0
Capabilities:
Get disk information
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x511c5e
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
mov eax, dword [esp + 0x154]
xor ebx, ebx
mov esi, 7
mov dword [esp + 0x28], eax
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
mov dword [esp + 0x14c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x150], 1
call fcn.0043ecf0
add esp, 4
test al, al
jne 0x403d76
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x403d52
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
push edx
call fcn.00407900
mov eax, dword [esp + 0x20]
add esp, 4
push eax
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x90], 8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
jb 0x40422f
mov ecx, dword [esp + 0x7c]
push ecx
jmp 0x404227
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], ebx
mov word [esp + 0xd0], bx
mov dword [esp + 0x100], esi
mov dword [esp + 0xfc], ebx
mov word [esp + 0xec], bx
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], ebx
mov word [esp + 0x108], bx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], ebx
mov dword [esp + 0x128], ebx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x130], ebx
mov byte [esp + 0x134], bl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0xc8], esi
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], bx
xor edi, edi
mov byte [esp + 0x14c], 3
xor ebp, ebp
lea esp, [esp]
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x403fe6
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x403fe6
cmp dword [esi + ebp + 0x18], 8
jb 0x403e4a
mov esi, dword [esi + ebp + 4]
jmp 0x403e4e
lea esi, [esi + ebp + 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x403fdb
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x403e83
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x403e8c
call fcn.004e89bf
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0xcc]
lea ecx, [esi + ebp]
push edx
call fcn.0043eeb0
add esp, 4
test al, al
je 0x403fdb
mov ecx, dword [esp + 0x130]
cmp dword [esp + 0x30], ecx
ja 0x403fdb
mov eax, dword [esp + 0x12c]
jb 0x403ecb
cmp dword [esp + 0x2c], eax
jae 0x403fdb
mov esi, dword [esp + 0x1c]
cmp esi, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
je 0x403ef8
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x403f01
call fcn.004e89bf
mov esi, dword [esp + 0x1c]
cmp dword [esi + ebp + 0x18], 8
jb 0x403f0e
mov esi, dword [esi + ebp + 4]
jmp 0x403f12
lea esi, [esi + ebp + 4]
movzx eax, word [esi]
push eax
lea esi, [esp + 0xb4]
call fcn.00406b30
push 4
push str.Game
lea esi, [esp + 0x40]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
call fcn.00407330
lea ecx, [esp + 0xb0]
push 0x51a554
push ecx
lea esi, [esp + 0x5c]
mov byte [esp + 0x154], 4
call fcn.00407690
lea edx, [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x15c], 5
call fcn.0043b740
mov esi, 8
add esp, 0x10
cmp dword [esp + 0x6c], esi
jb 0x403f96
mov eax, dword [esp + 0x58]
push eax
call fcn.004e7d7e
add esp, 4
mov byte [esp + 0x14c], 3
cmp dword [esp + 0x50], esi
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
jb 0x403fc2
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0xac], esi
jb 0x403fdb
mov edx, dword [esp + 0x98]
push edx
call fcn.004e7d7e
add esp, 4
add edi, 1
add ebp, 0x1c
jmp 0x403e10
or edi, 0xffffffff
cmp dword [esp + 0x8c], ebx
jne 0x4040fd
push 4
push str.Game
lea esi, [esp + 0x40]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
call fcn.00407330
lea eax, [esp + 0xb0]
push 0x51a554
push eax
lea esi, [esp + 0x9c]
mov byte [esp + 0x154], 6
call fcn.00407690
lea ecx, [esp + 0x40]
push ecx
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x15c], 7
call fcn.0043b740
add esp, 0x10
push edi
push ebx
push eax
lea eax, [esp + 0x84]
mov byte [esp + 0x158], 8
call fcn.00401610
mov ebp, 8
cmp dword [esp + 0x6c], ebp
jb 0x404081
mov edx, dword [esp + 0x58]
push edx
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0xac], ebp
mov esi, 7
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
jb 0x4040ac
mov eax, dword [esp + 0x98]
push eax
call fcn.004e7d7e
add esp, 4
mov byte [esp + 0x14c], 3
cmp dword [esp + 0x50], ebp
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], bx
jb 0x4040dd
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004e7d7e
add esp, 4
lea edx, [esp + 0x78]
push edx
call fcn.0043a870
add esp, 4
test al, al
jne 0x404102
lea eax, [esp + 0x78]
push eax
call fcn.0043aea0
add esp, 4
jmp 0x404102
mov ebp, 8
mov eax, dword [esp + 0x28]
push 0x73
add eax, 0x24
call fcn.00481420
mov esi, eax
cmp esi, ebx
je 0x404195
mov ecx, dword [esp + 0x28]
add ecx, 0x27c
push ecx
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x9c]
call fcn.0043b740
add esp, 8
mov byte [esp + 0x14c], 9
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x170]
mov ecx, esi
call eax
mov byte [esp + 0x14c], 3
cmp dword [esp + 0xac], ebp
jb 0x40416b
mov ecx, dword [esp + 0x98]
push ecx
call fcn.004e7d7e
add esp, 4
mov edx, dword [esi]
mov edx, dword [edx + 0x2d8]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x74]
push ecx
push ebx
push 0x437
mov ecx, esi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
call edx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
push eax
push ecx
call fcn.00404710
cmp dword [esp + 0xc8], ebp
jb 0x4041c1
mov edx, dword [esp + 0xb4]
push edx
call fcn.004e7d7e
add esp, 4
lea esi, [esp + 0xcc]
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], bx
call fcn.0043db50
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40420d
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
push ecx
call fcn.00407900
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x90], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
jb 0x40422f
mov eax, dword [esp + 0x7c]
push eax
call fcn.004e7d7e
add esp, 4
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004e7d6f
add esp, 0x13c
ret 4