Function at 0x4397f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573b00
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5e1da0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00465589
lea ecx, [ebp - 0x30]
call fcn.0046d30a
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004587ad
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x439846
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
lea esp, [esp]
lea eax, [ebx + 0x41]
movzx ecx, al
push ecx
lea edx, [ebp - 0x18]
push 0x58e37c
push edx
mov byte [ebp - 0x14], al
call fcn.004026d0
push 0x58c338
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0040a4c0
mov eax, dword [eax]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4398b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
push ebx
call fcn.00555232
add esp, 4
test eax, eax
jne 0x4398e9
cmp esi, 3
je 0x4398d9
cmp esi, 2
je 0x4398d9
cmp esi, 5
je 0x4398d9
cmp esi, 4
jne 0x4398e9
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.0046d443
cmp ebx, 0x1a
jl 0x439860
call fcn.004587ad
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43990c
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
push 9
push str.All_Drive
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004014c0
mov ecx, dword [ebp - 0x10]
mov edx, dword [edi + 0xb4]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ecx
push 0
push 0x14a
push edx
call ebx
mov eax, dword [ebp - 0x28]
xor esi, esi
test eax, eax
jle 0x439995
test esi, esi
js 0x439a34
cmp esi, eax
jge 0x439a34
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax + esi]
push ecx
lea edx, [ebp - 0x10]
push 0x58f3fc
push edx
call fcn.004026d0
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0xb4]
add esp, 0xc
push eax
inc esi
push esi
push 0x14a
push ecx
call ebx
mov eax, dword [ebp - 0x28]
cmp esi, eax
jl 0x439951
call fcn.0045b519
mov eax, dword [eax + 4]
mov edx, dword [eax]
push 0xa
push str.MiltiSearchType
mov ecx, eax
mov eax, dword [edx + 0x7c]
push str.Options
call eax
mov dword [edi + 0x110], eax
call fcn.0045b519
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x84]
push str.All_Drive
push str.SearchSelectDrive
push str.Options
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call edx
mov eax, dword [eax]
mov ebx, dword [edi + 0x114]
lea ecx, [edi + 0x114]
lea esi, [eax - 0x10]
sub ebx, 0x10
mov byte [ebp - 4], 3
cmp esi, ebx
je 0x439aa0
cmp dword [ebx + 0xc], 0
jl 0x439a96
mov edx, dword [esi]
cmp edx, dword [ebx]
jne 0x439a96
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x439a39
cmp eax, dword [esi]
jne 0x439a39
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x439a72
call fcn.00458513
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x439a53
call fcn.004015e0
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 4]
inc ecx
push ecx
add esi, 0x10
push esi
push ecx
add eax, 0x10
push eax
call fcn.00552451
mov esi, dword [ebp - 0x1c]
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x439a8b
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add esi, 0x10
mov dword [edi + 0x114], esi
jmp 0x439aa0
mov edx, dword [eax - 0xc]
push edx
push eax
call fcn.004014c0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439ac3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0045b519
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x84]
push 0
push str.LastSearchFolder
push str.Options
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call edx
mov eax, dword [eax]
mov ebx, dword [edi + 0x118]
lea ecx, [edi + 0x118]
lea esi, [eax - 0x10]
sub ebx, 0x10
mov byte [ebp - 4], 4
cmp esi, ebx
je 0x439b9f
cmp dword [ebx + 0xc], 0
jl 0x439b95
mov edx, dword [esi]
cmp edx, dword [ebx]
jne 0x439b95
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x439b38
cmp eax, dword [esi]
jne 0x439b38
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x439b71
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x439b52
call fcn.004015e0
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 4]
inc ecx
push ecx
add esi, 0x10
push esi
push ecx
add eax, 0x10
push eax
call fcn.00552451
mov esi, dword [ebp - 0x1c]
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x439b8a
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add esi, 0x10
mov dword [edi + 0x118], esi
jmp 0x439b9f
mov edx, dword [eax - 0xc]
push edx
push eax
call fcn.004014c0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439bc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x110]
sub eax, 0xa
je 0x439c12
dec eax
jne 0x439c65
push 1
push 0x5b8
mov ecx, edi
mov dword [edi + 0x10c], 1
mov dword [edi + 0x108], eax
call fcn.004647e8
mov ecx, eax
call fcn.00464a0b
push 0
push 0x5b9
mov ecx, edi
call fcn.004647e8
mov ecx, eax
call fcn.00464a0b
push 1
jmp 0x439c52
push 1
push 0x5b7
mov ecx, edi
mov dword [edi + 0x10c], 0
mov dword [edi + 0x108], 1
call fcn.004647e8
mov ecx, eax
call fcn.00464a0b
push 1
push 0x5b9
mov ecx, edi
call fcn.004647e8
mov ecx, eax
call fcn.00464a0b
push 0
push 0x5bc
mov ecx, edi
call fcn.004647e8
mov ecx, eax
call fcn.00464a0b
push 0
mov ecx, edi
call fcn.0045fa60
mov eax, dword [edi + 0x114]
push str.All_Drive
push eax
call fcn.00552f28
xor esi, esi
add esp, 8
cmp eax, esi
sete al
push esi
push esi
test al, al
je 0x439ca6
mov ecx, dword [edi + 0xb4]
push 0x14e
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x439d95
mov edx, dword [edi + 0xb4]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0x146
push edx
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
jle 0x439d83
call fcn.004587ad
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x43983c
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push ecx
push esi
lea ecx, [edi + 0x94]
mov byte [ebp - 4], 5
call fcn.0046d93c
mov eax, dword [edi + 0x114]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x43983c
mov edx, dword [ebp - 0x14]
push eax
push edx
call fcn.00552f28
add esp, 8
test eax, eax
sete al
test al, al
je 0x439d3f
mov eax, dword [edi + 0xb4]
push 0
push esi
push 0x14e
push eax
call ebx
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439d62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0xb4]
push 0
push 0
push 0x146
push ecx
inc esi
call ebx
cmp esi, eax
jl 0x439cc5
cmp dword [ebp - 0x1c], 0
jne 0x439d95
mov edx, dword [edi + 0xb4]
push 0
push 0
push 0x14e
push edx
call ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439db8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439ddb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.0046d321
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret