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

Disassembly:
push 0xffffffffffffffff
push 0x1009bc5c
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x4a4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x4bc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4cc]
xor ebx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
cmp eax, ebx
je 0x1005e1d5
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push ebx
push ebx
call edi
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
push 0x100c49e4
neg ecx
or ecx, eax
push ecx
call fcn.10076988
mov ebp, eax
add esp, 8
mov dword [esp + 0x20], ebp
cmp ebp, ebx
jne 0x1005de7f
xor eax, eax
jmp 0x1005e1d9
push ebp
push esi
call edi
test eax, eax
je 0x1005e1cc
jmp 0x1005de90
xor eax, eax
cmp ax, word [ebp]
je 0x1005e1c8
xor ecx, ecx
mov eax, ebp
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1005deb4
sub eax, edx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0x2c]
call fcn.10007450
mov dword [esp + 0x4c4], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1005e17f
push 0x41c
lea edx, [esp + 0x9c]
push ebx
push edx
call fcn.10079c60
lea eax, [esp + 0xa4]
mov edx, ebp
mov ecx, eax
add esp, 0xc
xor edi, edi
mov dword [esp + 0x4a8], 0xffffffff
mov esi, 0x104
sub edx, ecx
jmp 0x1005df20
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x1005df40
movzx ecx, word [edx + eax]
cmp cx, bx
je 0x1005df40
mov word [eax], cx
add eax, 2
sub esi, 1
jne 0x1005df20
jmp 0x1005df44
cmp esi, ebx
jne 0x1005df4c
sub eax, 2
mov edi, 0x8007007a
xor edx, edx
cmp edi, ebx
mov word [eax], dx
jl 0x1005e167
xor eax, eax
push 1
mov word [esp + 0x68], ax
push ebx
lea eax, [esp + 0x30]
lea ecx, [esp + 0x68]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
call fcn.100073a0
mov byte [esp + 0x4c4], 1
mov eax, dword [esp + 0x64]
mov esi, 8
cmp dword [esp + 0x78], esi
jae 0x1005df9e
lea eax, [esp + 0x64]
movzx ecx, word [eax]
push ecx
lea edi, [esp + 0x18]
call fcn.1005e210
test eax, eax
je 0x1005dfc2
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x4a8], edx
xor eax, eax
push 2
mov word [esp + 0x84], ax
mov edi, 7
push ebx
lea eax, [esp + 0x30]
lea ecx, [esp + 0x84]
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebx
call fcn.100073a0
mov byte [esp + 0x4c4], 2
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x94], esi
jae 0x1005e019
lea ecx, [esp + 0x80]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.1005e2e0
test eax, eax
je 0x1005e042
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4ac], ecx
mov dword [esp + 0x4b0], edx
xor eax, eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], ax
mov byte [esp + 0x4c4], 3
mov edi, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x1005e067
lea edi, [esp + 0x2c]
lea ecx, [esp + 0x44]
call fcn.1005e360
test eax, eax
je 0x1005e0c3
cmp dword [esp + 0x5c], esi
mov esi, dword [esp + 0x48]
jae 0x1005e082
lea esi, [esp + 0x48]
lea eax, [esp + 0x2a0]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1005e0b2
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x1005e0b2
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1005e092
jmp 0x1005e0b6
cmp edx, ebx
jne 0x1005e0b9
sub eax, 2
xor edx, edx
mov word [eax], dx
mov esi, 8
mov byte [esp + 0x4c4], 2
cmp dword [esp + 0x5c], esi
jb 0x1005e0de
mov eax, dword [esp + 0x48]
push eax
call fcn.100755e2
add esp, 4
mov edi, 7
xor ecx, ecx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], cx
mov byte [esp + 0x4c4], 1
cmp dword [esp + 0x94], esi
jb 0x1005e113
mov edx, dword [esp + 0x80]
push edx
call fcn.100755e2
add esp, 4
xor eax, eax
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], ax
mov byte [esp + 0x4c4], bl
cmp dword [esp + 0x78], esi
jb 0x1005e145
mov ecx, dword [esp + 0x64]
push ecx
call fcn.100755e2
add esp, 4
lea eax, [esp + 0x98]
xor edx, edx
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0x24]
push eax
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], dx
call fcn.10061520
jmp 0x1005e184
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x98]
push eax
mov esi, 8
call fcn.10061520
jmp 0x1005e184
mov esi, 8
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebp, [ebp + eax*2 + 2]
mov dword [esp + 0x4c4], 0xffffffff
cmp dword [esp + 0x40], esi
jb 0x1005e1ad
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.100755e2
add esp, 4
xor edx, edx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
cmp ebp, ebx
jne 0x1005de90
mov ebp, dword [esp + 0x20]
push ebp
call fcn.10076993
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4a4]
xor ecx, esp
call fcn.100755ed
add esp, 0x4b4
ret 4