Function at 0x403f70
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x437bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4483d0]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebp
push esi
push edi
mov eax, dword [0x4483d0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
mov esi, ecx
push 0x64
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [esp + 0x18], 0
lea ebp, [esp + 0x18]
je 0x404039
lea ebx, [ebx]
push ebp
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x404014
mov edi, 0x43f04c
mov esi, ebp
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x404014
mov edi, 0x43f050
mov esi, ebp
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x404014
mov ecx, dword [ebx + 0xec]
push ebp
push eax
push 0x143
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404020
sub eax, edx
cmp byte [eax + ebp + 1], cl
lea ebp, [eax + ebp + 1]
jne 0x403fd0
mov esi, dword [esp + 0x14]
call fcn.004059b2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404053
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0
push 0
mov dword [esp + 0x90], 0
mov ecx, dword [ebx + 0xec]
push 0x146
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x40412a
lea edx, [esp + 0x10]
push edx
push 0
lea ecx, [ebx + 0xcc]
call fcn.0040a013
mov esi, dword [esp + 0x10]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4040c9
cmp eax, dword [esi]
jne 0x4040c9
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x404100
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x4040e2
jmp fcn.00401760
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00421c55
add esp, 0x10
mov esi, dword [esp + 0x14]
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esp + 0x10]
add edi, 0x10
add eax, 0xfffffff0
mov dword [esi], edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x404178
call fcn.004059b2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404144
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, esi
call fcn.004014e0
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404184
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00420b57
add esp, 0x7c
ret