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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8689
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x64], 0x8004
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], 0x14
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x68], 0x513544
mov dword [ebp - 4], 0
call fcn.00415c00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4a0a09
push 0x80004005
call fcn.004162a0
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0048fa40
test eax, eax
je 0x4a0a5a
mov dword [ebp - 0x88], 9
mov dword [ebp - 0x84], 0x34
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x8c], 0x513484
lea eax, [ebp - 0x8c]
push 0x526c18
push eax
call fcn.004c22fb
call fcn.00415c00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4a0a76
push 0x80004005
call fcn.004162a0
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 2
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x4a0aad
push 0x105
lea ecx, [ebp - 0x30]
call fcn.00415500
mov esi, dword [ebp - 0x30]
push 0x105
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [esi - 8]
mov edi, eax
push esi
call fcn.004bf579
add esp, 8
test eax, eax
js 0x4a0f3a
cmp eax, dword [esi - 8]
jg 0x4a0f3a
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
jne 0x4a0b04
mov dword [ebp - 0x88], 9
mov dword [ebp - 0x84], 0x2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4a0a3c
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x24]
push esi
call fcn.0048e020
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004a3490
call fcn.00415c00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4a0b38
push 0x80004005
call fcn.004162a0
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 4
call fcn.00415c00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4a0b67
push 0x80004005
call fcn.004162a0
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
push dword [ebp - 0x24]
mov dword [ebp - 0x18], 0
call fcn.0048e020
mov byte [ebp - 4], 6
mov ecx, 1
mov eax, dword [ebp - 0x1c]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x105
or eax, ecx
jge 0x4a0bb4
push 0x105
lea ecx, [ebp - 0x1c]
call fcn.00415500
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x105
or eax, ecx
jge 0x4a0bd8
push 0x105
lea ecx, [ebp - 0x38]
call fcn.00415500
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 4], 1
jle 0x4a0bef
push dword [ecx - 0xc]
lea ecx, [ebp - 0x18]
call fcn.00415430
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push 0x105
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x105
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4a0c34
mov dword [ebp - 0x88], 9
mov dword [ebp - 0x84], 0x2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4a0a3c
push dword [edi - 8]
push edi
call fcn.004bf579
add esp, 8
test eax, eax
js 0x4a0f3a
cmp eax, dword [edi - 8]
jg 0x4a0f3a
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x1c]
push dword [eax - 8]
push eax
call fcn.004bf579
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4a0f3a
mov eax, dword [ebp - 0x1c]
cmp ecx, dword [eax - 8]
jg 0x4a0f3a
mov dword [eax - 0xc], ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x18]
push dword [eax - 8]
push eax
call fcn.004bf579
mov edx, eax
add esp, 8
test edx, edx
js 0x4a0f3a
mov ecx, dword [ebp - 0x18]
cmp edx, dword [ecx - 8]
jg 0x4a0f3a
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov word [eax + edx*2], cx
push dword [ebp - 0x5c]
call fcn.004bc57c
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x74], eax
mov ecx, dword [ecx - 0xc]
lea ecx, [ecx*2 + 1]
push ecx
call fcn.004bc57c
mov edx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x78], edx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push edx
call fcn.004c1c20
mov ecx, dword [ebp - 0x20]
add esp, 0x14
mov eax, dword [ecx - 0xc]
lea ecx, [ebp - 0x68]
push dword [ebp - 0x74]
add eax, eax
push eax
push dword [ebp - 0x78]
call fcn.0049f3b0
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
call fcn.004be903
add esp, 4
cmp dword [ebp - 0x7c], 0
je 0x4a0d45
push dword [ebp - 0x74]
call fcn.004be903
add esp, 4
mov dword [ebp - 0x88], 9
mov dword [ebp - 0x84], 0x27
mov dword [ebp - 0x80], 0
jmp 0x4a0a3f
mov edx, str.BCAjITM6NCA_EjAgOTo0EzYyICgxCzN4bGwIPyAxMjUqJmYeNCcya3g
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x88]
call fcn.004a4780
mov byte [ebp - 4], 7
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
jne 0x4a0d73
push str.invalid_vector_T__subscript
call fcn.004bc548
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00416150
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 9
call fcn.00415770
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x78], 0
test ecx, ecx
je 0x4a0e18
lea esp, [esp]
mov edx, 0x5139d4
lea ecx, [ebp - 0x98]
call fcn.004a4780
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
je 0x4a0d69
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x78]
movzx eax, byte [eax + edx]
push eax
push ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.004a35e0
mov byte [ebp - 4], 9
add esp, 0xc
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x4a0e0a
push eax
call fcn.004191e0
add esp, 4
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x78], eax
cmp eax, ecx
jb 0x4a0da0
lea eax, [ecx + 5]
push eax
mov dword [ebp - 0x7c], eax
call fcn.004bc57c
add esp, 4
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x4a0e62
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x98], 9
mov dword [ebp - 0x94], 0x22
mov dword [ebp - 0x9c], 0x513484
push 0x526c18
jmp 0x4a0a54
push dword [ebp - 0x5c]
push dword [ebp - 0x74]
push eax
call fcn.004bd980
push dword [ebp - 0x74]
call fcn.004be903
mov eax, dword [ebp - 0x34]
mov edx, eax
mov ecx, eax
shr edx, 0x18
shr eax, 8
mov byte [ebp - 0x26], al
mov eax, dword [ebp - 0x34]
shr ecx, 0x10
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x78]
mov byte [ebp - 0x27], cl
lea ecx, [ebp - 0x28]
push 4
push ecx
push eax
mov byte [ebp - 0x28], dl
call fcn.004bd980
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movdqu xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x50], 7
movq qword [ebp - 0x44], xmm0
mov dword [ebp - 0x4c], 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x3c], 0
mov dword [ebp - 0x54], 0x51350c
mov eax, dword [ebp - 0x7c]
dec eax
mov byte [ebp - 4], 0xb
push eax
call fcn.004bc57c
mov ecx, dword [ebp - 0x7c]
dec ecx
mov dword [ebp - 0x74], eax
push ecx
push dword [ebp - 0x78]
push eax
call fcn.004bd980
mov ecx, dword [ebp - 0x7c]
add esp, 0x2c
dec ecx
push ecx
push dword [ebp - 0x74]
lea ecx, [ebp - 0x54]
call fcn.0049fbe0
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x78]
push dword [ebp - 0x74]
mov byte [edx + ecx - 1], al
call fcn.004be903
mov eax, dword [ebp - 0x7c]
add esp, 4
add eax, eax
mov dword [ebp - 0x74], eax
jns 0x4a0f44
push 0x80070057
call fcn.004162a0
mov ecx, dword [ebp - 0xa0]
mov edx, 1
mov eax, dword [ecx]
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, dword [ebp - 0x74]
or eax, edx
jge 0x4a0f66
push dword [ebp - 0x74]
call fcn.00415500
cmp dword [ebp - 0x7c], 0
mov dword [ebp - 0x74], 0
jbe 0x4a0ffe
jmp 0x4a0f80
mov edx, str.YnF9Gg
lea ecx, [ebp - 0x98]
call fcn.004a4990
mov byte [ebp - 4], 0xc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 1
je 0x4a0d69
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x74]
movzx eax, byte [eax + edx]
push eax
push ecx
push dword [ebp - 0xa0]
call fcn.0049c630
mov byte [ebp - 4], 0xb
add esp, 0xc
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x4a0ff2
push eax
call fcn.004191e0
add esp, 4
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x74]
inc eax
mov dword [ebp - 0x74], eax
cmp eax, dword [ebp - 0x7c]
jb 0x4a0f80
push dword [ebp - 0x78]
call fcn.004be903
mov eax, dword [ebp - 0x48]
add esp, 4
mov dword [ebp - 0x54], 0x51351c
test eax, eax
je 0x4a1035
push eax
call fcn.004191e0
add esp, 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 6
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4a1056
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
or ecx, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a1077
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
or ecx, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a1098
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 3
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a10b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a10d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a10f5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4a1113
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bd963
mov esp, ebp
pop ebp
ret 4