Function at 0x412370
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b939b
mov eax, dword fs:[0]
push eax
sub esp, 0xe74
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe80], ecx
push 0x208
lea eax, [ebp - 0x434]
push 0
push eax
call fcn.004773d0
push 0x208
lea eax, [ebp - 0x63c]
push 0
push eax
call fcn.004773d0
push 0x208
lea eax, [ebp - 0x844]
push 0
push eax
call fcn.004773d0
push 0x208
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.004773d0
add esp, 0x30
lea edi, [ebp - 0x20]
mov eax, 1
mov ecx, eax
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [edi], eax
lea eax, [ebp - 0x434]
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push 0x4d57b8
push eax
call fcn.00412060
add esp, 0x10
mov dword [ebp - 0xc60], 0
mov dword [ebp - 0xc5c], 0
mov dword [ebp - 0xc58], 0
lea ecx, [ebp - 0xe70]
mov dword [ebp - 4], 0
call fcn.00413bb0
mov esi, dword [ebp - 0xc60]
test eax, eax
jle 0x41249f
mov ecx, dword [ebp - 0xc5c]
mov eax, 0x4bda12f7
sub ecx, esi
imul ecx
xor eax, eax
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
test ecx, ecx
jle 0x41249f
mov edi, esi
cmp ecx, eax
jbe 0x4127d8
cmp dword [edi + 0x1a8], 2
je 0x4124e9
inc eax
add edi, 0x1b0
cmp ecx, eax
jg 0x412485
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x412525
mov ecx, dword [ebp - 0xc58]
mov eax, 0x4bda12f7
sub ecx, esi
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x1b0
mov eax, esi
cmp ecx, 0x1000
jb 0x41251b
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4127d3
jmp 0x41251b
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add edi, 0xa8
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0
call esi
push eax
lea eax, [ebp - 0x63c]
push eax
push 0xffffffffffffffff
push edi
push 1
push 0
call esi
mov esi, dword [ebp - 0xc60]
jmp 0x41249f
push ecx
push esi
call fcn.00475891
add esp, 8
lea eax, [ebp - 0x844]
push eax
call fcn.00412080
push 0x208
lea eax, [ebp - 0xa4c]
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.004773d0
add esp, 0xc
lea eax, [ebp - 0xa4c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 3
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0047d7f3
push 0x208
lea eax, [ebp - 0xe5c]
push 0
push eax
call fcn.004773d0
push 0x208
lea eax, [ebp - 0xc54]
push 0
push eax
call fcn.004773d0
add esp, 0x24
mov dword [ebp - 0xe7c], 0
lea eax, [ebp - 0xc54]
mov dword [ebp - 0xe78], 0
mov dword [ebp - 0xe74], 0
push 0x104
push eax
lea eax, [ebp - 0xe74]
push eax
lea eax, [ebp - 0xe78]
push eax
lea eax, [ebp - 0xe7c]
push eax
push 0x104
lea eax, [ebp - 0xe5c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x412617
push dword [ebp - 0xe7c]
lea eax, [ebp - 0x22c]
push str._08X
push eax
call fcn.00412060
add esp, 0xc
jmp 0x412620
xor eax, eax
mov word [ebp - 0x22c], ax
lea ecx, [ebp - 0x434]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412630
sub ecx, edx
lea esi, [ebp - 0x63c]
sar ecx, 1
lea edx, [esi + 2]
mov dword [ebp - 0xe74], ecx
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x412650
sub esi, edx
lea edi, [ebp - 0x844]
sar esi, 1
lea edx, [edi + 2]
nop dword [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x412670
sub edi, edx
lea edx, [ebp - 0x22c]
lea eax, [edx + 2]
sar edi, 1
mov dword [ebp - 0xe78], eax
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x412690
sub edx, dword [ebp - 0xe78]
mov eax, dword [ebp - 0xe80]
mov ecx, dword [ebp + 8]
sar edx, 1
cmp dword [ebp - 0xe74], 0
mov dword [eax], ecx
jne 0x4126c8
test edx, edx
jne 0x4126c8
test esi, esi
jne 0x4126c8
test edi, edi
jne 0x4126c8
lea eax, [edx + 1]
jmp 0x4126ca
xor eax, eax
mov esi, dword [ebp - 0xe80]
mov dword [ecx + 0x820], eax
mov ecx, dword [esi]
cmp dword [ecx + 0x820], 0
jne 0x412757
lea edx, [ebp - 0x434]
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4126e7
mov ecx, dword [esi]
lea edx, [ebp - 0x63c]
add ecx, 0x208
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x412706
mov ecx, dword [esi]
lea edx, [ebp - 0x844]
add ecx, 0x410
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x412725
mov ecx, dword [esi]
lea edx, [ebp - 0x22c]
add ecx, 0x618
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x412744
jmp 0x4127b5
mov ecx, esi
call fcn.004127e0
test eax, eax
jne 0x4127b5
mov ecx, esi
call fcn.00412af0
test eax, eax
jne 0x4127b5
movups xmm0, xmmword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]
mov ecx, esi
movups xmmword [esi + 4], xmm0
movups xmm0, xmmword [0x4d5800]
movups xmmword [esi + 0x14], xmm0
movups xmm0, xmmword [0x4d5810]
movups xmmword [esi + 0x24], xmm0
movups xmm0, xmmword [0x4d5820]
movups xmmword [esi + 0x34], xmm0
movq xmm0, qword [0x4d5830]
movq qword [esi + 0x44], xmm0
mov eax, dword [0x4d5838]
mov dword [esi + 0x4c], eax
call fcn.00412df0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475880
mov esp, ebp
pop ebp
ret 4
call fcn.0047cd61
call fcn.004132d0
int3