Function at 0x404510
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x46aba7
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x481330]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x481330]
xor eax, esp
push eax
lea eax, [esp + 0x2bc]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2cc]
mov eax, dword [ebx + 0x4d8]
mov dword [esp + 0x20], ebx
test eax, eax
je 0x404945
push 1
push str.layMain
lea esi, [ebx + 0x358]
push esi
call fcn.0041c413
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xe0]
push 1
call eax
push 1
push str.layEmpty
push esi
call fcn.0041c413
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xe0]
push 0
call eax
mov eax, dword [ebx + 0x4f8]
mov edx, dword [eax + 0x658]
lea ecx, [eax + 0x658]
mov eax, dword [edx + 0x24]
call eax
mov eax, dword [ebx + 0x4d4]
mov ebp, dword [ebx + 0x4bc]
mov edi, dword [eax]
mov ecx, eax
mov edx, ebp
mov byte [esp + 0x1b], 0
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], edx
mov edi, edi
xor esi, esi
cmp ebp, esi
je 0x4045ec
cmp ebp, dword [esp + 0x48]
je 0x4045f1
call fcn.00451615
cmp edi, dword [esp + 0x4c]
je 0x40492e
cmp byte [esp + 0x1b], 0
jne 0x404622
cmp ebp, esi
jne 0x404762
call fcn.00451615
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x40461b
call fcn.00451615
mov al, byte [edi + 0xc]
mov byte [esp + 0x1b], al
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov byte [esp + 0x1a8], 1
mov dword [esp + 0x1ac], esi
mov dword [esp + 0x1b0], esi
push esi
lea ecx, [ebx + 0x14]
push ecx
push esi
push esi
push ecx
mov eax, esp
mov dword [esp + 0x2d8], esi
lea ecx, [esp + 0x80]
mov dword [esp + 0x30], esp
mov dword [eax], str.listitem_drive.xml
call fcn.0041edef
mov dword [esp + 0x1c], eax
mov ecx, eax
cmp eax, esi
jne 0x40467b
mov ecx, dword [ebx + 0xf8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x110]
push esi
push str.lblDriveName
push 0x41b91c
call eax
mov ebx, eax
test ebp, ebp
jne 0x40476a
call fcn.00451615
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4046ab
call fcn.00451615
movsx cx, byte [edi + 0xc]
movzx edx, cx
push edx
push str._c:_
lea esi, [esp + 0x58]
call fcn.0040b494
xor eax, eax
push 0xfe
push eax
lea ecx, [esp + 0x1c6]
mov byte [esp + 0x2d4], 1
push ecx
mov word [esp + 0x1c8], ax
call fcn.00455920
mov eax, dword [esp + 0x68]
add esp, 0x14
cmp dword [esp + 0x68], 8
jae 0x4046f9
lea eax, [esp + 0x54]
push 0
push 0
push 0
push 0
push 0
push 0x80
lea edx, [esp + 0x1cc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp word [esp + 0x1b4], 0
je 0x404777
test ebp, ebp
jne 0x404772
call fcn.00451615
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x404737
call fcn.00451615
movsx eax, byte [edi + 0xc]
and eax, 0xffffffdf
push eax
lea ecx, [esp + 0x1b8]
push ecx
push str._s__c:_
lea esi, [esp + 0x30]
call fcn.0040b494
add esp, 0xc
mov byte [esp + 0x2c4], 2
jmp 0x4047ad
mov eax, dword [ebp]
jmp 0x404611
mov eax, dword [ebp]
jmp 0x4046a1
mov eax, dword [ebp]
jmp 0x40472d
test ebp, ebp
jne 0x4047bc
call fcn.00451615
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x40478c
call fcn.00451615
movsx edx, byte [edi + 0xc]
and edx, 0xffffffdf
push edx
push 0x46e170
lea esi, [esp + 0x2c]
call fcn.0040b494
add esp, 8
mov byte [esp + 0x2c4], 3
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x4047c1
mov eax, dword [eax + 4]
jmp 0x4047c4
mov eax, dword [ebp]
jmp 0x404782
add eax, 4
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x3c]
mov ecx, ebx
call eax
mov byte [esp + 0x2c4], 1
cmp dword [esp + 0x3c], esi
jb 0x4047e9
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0045164f
add esp, 4
xor ebx, ebx
cmp ebp, ebx
jne 0x404926
call fcn.00451615
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x404804
call fcn.00451615
movsx edx, byte [edi + 0xc]
xor eax, eax
lea edx, [edx*2 + str.drive_]
mov word [esp + 0x28], ax
mov ebp, 7
mov eax, edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
lea esi, [eax + 2]
jmp 0x404830
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404830
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x2c]
call fcn.00401f60
mov byte [esp + 0x2c4], 4
mov eax, dword [esp + 0x28]
mov edi, 8
cmp dword [esp + 0x3c], edi
jae 0x404865
lea eax, [esp + 0x28]
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov byte [esp + 0x2c4], 1
cmp dword [esp + 0x3c], edi
jb 0x40488e
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0045164f
add esp, 4
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x4f8]
xor edx, edx
lea ecx, [eax + 0x658]
mov word [esp + 0x28], dx
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
call eax
cmp dword [esp + 0x68], edi
jb 0x4048c8
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0045164f
add esp, 4
mov dword [esp + 0x2c4], 0xffffffff
mov eax, dword [esp + 0x6c]
xor edx, edx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], dx
cmp eax, ebx
je 0x4048f3
push eax
call fcn.00451311
add esp, 4
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x404904
push eax
call fcn.00451311
add esp, 4
lea esi, [esp + 0x40]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call fcn.004029a0
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x20]
jmp 0x4045e0
mov eax, dword [ebp]
jmp 0x4047fa
mov eax, dword [ebx + 0x4f8]
lea ecx, [eax + 0x6b8]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
push esi
push esi
call edx
mov ecx, dword [esp + 0x2bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.00451137
add esp, 0x2b4
ret 4