Function at 0x418d40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [0x438004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x418]
push edi
push 0x208
mov edi, ecx
mov dword [ebp - 0x838], edx
push 0
push eax
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x82c], esi
call fcn.004023d0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x208
push 0
push eax
call fcn.004023d0
add esp, 0xc
mov dword [ebp - 0x834], 0
mov ebx, edi
mov dword [ebp - 0x830], ebx
test edi, edi
jne 0x418dd3
push 0x2498
call fcn.0040890c
add esp, 4
mov ebx, eax
mov dword [ebp - 0x830], ebx
push 0x2498
push edi
push ebx
call fcn.004023d0
add esp, 0xc
mov dword [ebx + 0xc], 1
lea edi, [ebx + 0x1240]
mov ecx, 0x190
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x82c]
lea eax, [edi + 0x438]
push eax
push 0x431dd8
lea eax, [ebp - 0x828]
push 0x104
push eax
call fcn.00401010
add esp, 0x10
lea eax, [ebp - 0x418]
push 0x104
push eax
push 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea ecx, [ebp - 0x210]
mov eax, ebx
mov edx, ecx
sub eax, edx
lea edx, [eax + 0x1880]
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x418e50
lea ecx, [ebp - 0x418]
mov eax, ebx
mov edx, ecx
sub eax, edx
lea edx, [eax + 0x1a88]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x418e72
cmp dword [ebp - 0x83c], 0
jne 0x418fd0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x620]
push 0x104
push eax
mov eax, dword [edi + 0x424]
and eax, 0x2000
push eax
push esi
call dword [sym.imp.dcapi.dll_dc_get_hw_name]
add esp, 0x10
test dword [edi + 0x424], 0x2000
jne 0x418eee
mov eax, dword [0x43ad00]
cmp eax, 0x43ad00
je 0x418eee
nop dword [eax]
mov ebx, eax
cmp dword [eax + 0x18], esi
je 0x418ee2
mov eax, dword [eax]
cmp eax, 0x43ad00
jne 0x418ed0
jmp 0x418ef4
mov dword [ebp - 0x834], 1
jmp 0x418ef4
mov ebx, dword [ebp - 0x83c]
mov eax, dword [ebp - 0x830]
push 0x1018
push dword [ebp - 0x838]
mov dword [eax + 8], 0
add eax, 0x20
push eax
call fcn.00402e50
add esp, 0xc
cmp dword [ebp - 0x834], 0
jne 0x418fba
push 0x2498
call fcn.0040890c
mov esi, dword [ebp - 0x82c]
mov ebx, eax
add esp, 4
mov ecx, 0x190
mov dword [ebx + 8], 1
lea edi, [ebx + 0x1240]
push 0x1018
push dword [ebp - 0x838]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x20]
push ecx
call fcn.00402e50
lea ecx, [ebp - 0x620]
mov eax, ebx
mov edx, ecx
add esp, 0xc
sub eax, edx
lea edx, [eax + 0x1038]
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x418f80
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x82c]
mov dword [ebx + 0x18], eax
lea eax, [ebx + 0x10]
mov dword [ebx + 0x14], eax
mov dword [eax], eax
mov eax, dword [0x43ad04]
mov dword [ebx], 0x43ad00
mov dword [ebx + 4], eax
mov dword [eax], ebx
mov dword [0x43ad04], ebx
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x10]
mov ebx, dword [ebp - 0x830]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov dword [eax], ebx
mov dword [ecx + 4], ebx
test byte [edi + 0x424], 2
je 0x418ffa
push 0xffffffffffffffff
or edx, 0xffffffff
mov ecx, ebx
call fcn.00426a60
add esp, 4
test eax, eax
jne 0x418ffa
push 2
xor edx, edx
mov ecx, ebx
call fcn.00426a60
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010c7
mov esp, ebp
pop ebp
ret