Function at 0x487220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508c91
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x478], eax
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x494], eax
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x470], eax
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call fcn.00487740
lea ecx, [ebp - 0x490]
call fcn.00485ac0
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00478eb0
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 1
call fcn.004161c0
push str.generate_deviceid
mov edx, 0x10
lea ecx, [ebp - 0xf4]
call fcn.0040a850
add esp, 4
mov esi, eax
mov byte [ebp - 4], 3
mov cl, byte [esi + 0x48]
test cl, cl
je 0x4872e7
push str.machine_guid
push esi
call fcn.004110a0
mov cl, byte [esi + 0x48]
add esp, 8
mov edx, dword [ebp - 0x18]
add edx, 0xffffffe8
test cl, cl
je 0x487307
cmp dword [edx + 0x14], 8
mov eax, dword [edx + 0x10]
jb 0x4872fc
mov edx, dword [edx]
push eax
mov ecx, esi
call fcn.00412b30
add esp, 4
lea ecx, [ebp - 0xf4]
call fcn.0040a6f0
push 0
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x2c], xmm0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
test edi, edi
js 0x48733c
mov esi, 0x54dd00
xor edi, edi
mov dword [ebp - 0x474], esi
mov dword [ebp - 0x28], esi
jmp 0x48734a
mov eax, 0x54dd80
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edi
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
mov byte [ebp - 4], 4
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x468], eax
test eax, eax
je 0x4873c5
push str.initialize_security
mov edx, 4
lea ecx, [ebp - 0xf4]
call fcn.0040a850
add esp, 4
mov esi, eax
mov byte [ebp - 4], 5
mov al, byte [esi + 0x48]
test al, al
je 0x4873ba
push str.initialize_security_err
push esi
call fcn.004110a0
mov al, byte [esi + 0x48]
add esp, 8
test al, al
je 0x4873ba
push dword [ebp - 0x468]
mov ecx, esi
call fcn.00413130
lea ecx, [ebp - 0xf4]
call fcn.0040a6f0
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 6
push 0xc
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x54dd00
call fcn.004a4626
mov esi, eax
add esp, 4
mov dword [ebp - 0x468], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x48743a
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
push str.ROOTCIMV2
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x48772a
jmp 0x48743c
xor esi, esi
mov byte [ebp - 4], 6
mov dword [ebp - 0x468], esi
test esi, esi
je 0x487734
lea eax, [ebp - 0x34]
push eax
sub esp, 8
lea ecx, [ebp - 0x24]
push dword [esi]
call fcn.00488370
lea ecx, [ebp - 0x468]
mov byte [ebp - 0x469], al
call fcn.00416a00
cmp byte [ebp - 0x469], 0
je 0x487696
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x490]
call fcn.00485df0
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.00478eb0
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 6
call fcn.004161c0
push str.generate_deviceid
mov edx, 0x10
lea ecx, [ebp - 0xf4]
call fcn.0040a850
add esp, 4
mov esi, eax
mov byte [ebp - 4], 9
mov cl, byte [esi + 0x48]
test cl, cl
je 0x4874dd
push str.system_uuid
push esi
call fcn.004110a0
mov cl, byte [esi + 0x48]
add esp, 8
mov edx, dword [ebp - 0x18]
add edx, 0xffffffe8
test cl, cl
je 0x4874fd
cmp dword [edx + 0x14], 8
mov eax, dword [edx + 0x10]
jb 0x4874f2
mov edx, dword [edx]
push eax
mov ecx, esi
call fcn.00412b30
add esp, 4
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 6
call fcn.0040a6f0
lea eax, [ebp - 0x464]
mov dword [ebp - 0x464], 0
push eax
push 0
push 0
push 0x5112cc
mov esi, 0x43
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov edx, dword [ebp - 0x464]
test eax, eax
jne 0x487568
test edx, edx
je 0x48757d
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x468], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487550
sub ecx, dword [ebp - 0x468]
sar ecx, 1
je 0x487568
movzx esi, word [edx]
test edx, edx
je 0x48757d
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x464], 0
push str.get_hdd_sn
lea ecx, [ebp - 0x460]
call fcn.0040a3c0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x4c]
mov eax, 0x3a
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x466], ax
xor eax, eax
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x468]
push 2
push eax
mov word [ebp - 0x468], si
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
call fcn.00415d70
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x490]
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.00486ba0
add esp, 4
lea ecx, [ebp - 0x4c]
mov eax, 2
mov dword [ebp - 0x470], eax
call fcn.004161c0
lea ecx, [ebp - 0x460]
call fcn.0040a5f0
lea eax, [ebp - 0x490]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00478eb0
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 6
call fcn.004161c0
push str.generate_deviceid
mov edx, 0x10
lea ecx, [ebp - 0xf4]
call fcn.0040a850
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0xd
mov cl, byte [esi + 0x48]
test cl, cl
je 0x487667
push str.hdd_sn
push esi
call fcn.004110a0
mov cl, byte [esi + 0x48]
add esp, 8
mov edx, dword [ebp - 0x18]
add edx, 0xffffffe8
test cl, cl
je 0x487687
cmp dword [edx + 0x14], 8
mov eax, dword [edx + 0x10]
jb 0x48767c
mov edx, dword [edx]
push eax
mov ecx, esi
call fcn.00412b30
add esp, 4
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 6
call fcn.0040a6f0
mov esi, dword [ebp - 0x478]
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.00485920
add esp, 4
or dword [ebp - 0x470], 1
cmp dword [esi + 0x10], 0
jne 0x4876c8
push 0x20
push str.00000000000000000000000000000000
mov ecx, esi
call fcn.00415d70
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4876d9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4876ea
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x474]
mov eax, dword [eax + 4]
cmp eax, dword [0x54dd04]
jne 0x487705
test edi, edi
jne 0x487705
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x1c]
call fcn.0040e820
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.004a4250
push 0x8007000e
call fcn.004a4250
int3