Function at 0x45b440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6101
mov eax, dword fs:[0]
push eax
sub esp, 0x48c
mov eax, dword [0x507254]
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 - 0x494], eax
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x498], eax
xorps xmm0, xmm0
mov dword [ebp - 0x470], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 3
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call fcn.004400d0
lea ecx, [ebp - 0x490]
call fcn.004595a0
mov ecx, eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
je 0x45b516
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
add dword [ebp - 0x18], 0x18
jmp 0x45b520
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.004409c0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x47c]
cmp edx, 8
jb 0x45b564
mov ecx, dword [ebp - 0x490]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b55a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bb3e
push edx
push ecx
call fcn.004a6287
add esp, 8
push str.generate_deviceid
mov edx, 0x10
lea ecx, [ebp - 0xf4]
call fcn.004090a0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 3
mov cl, byte [esi + 0x48]
test cl, cl
je 0x45b59a
push str.machine_guid
push esi
call fcn.00412180
mov cl, byte [esi + 0x48]
add esp, 8
mov edx, dword [ebp - 0x18]
add edx, 0xffffffe8
test cl, cl
je 0x45b5ba
cmp dword [edx + 0x14], 8
mov eax, dword [edx + 0x10]
jb 0x45b5af
mov edx, dword [edx]
push eax
mov ecx, esi
call fcn.0040d720
add esp, 4
lea ecx, [ebp - 0xf4]
call fcn.00408f30
push 0
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x2c], xmm0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
mov dword [ebp - 0x474], esi
test esi, esi
js 0x45b5f5
xor eax, eax
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x2c], eax
mov eax, 0x507cf0
jmp 0x45b5fd
mov eax, 0x507d40
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x478], eax
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 edi, eax
test edi, edi
je 0x45b675
push str.initialize_security
mov edx, 4
lea ecx, [ebp - 0xf4]
call fcn.004090a0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 5
mov al, byte [esi + 0x48]
test al, al
je 0x45b66a
push str.initialize_security_err
push esi
call fcn.00412180
mov al, byte [esi + 0x48]
add esp, 8
test al, al
je 0x45b66a
push edi
mov ecx, esi
call fcn.0040b3f0
lea ecx, [ebp - 0xf4]
call fcn.00408f30
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 - 0x4c], 0
mov dword [ebp - 0x48], 0x507cf0
call fcn.004a6295
mov esi, eax
add esp, 4
mov dword [ebp - 0x46c], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x45b6ea
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 0x45bb43
jmp 0x45b6ec
xor esi, esi
mov byte [ebp - 4], 6
test esi, esi
je 0x45bb4d
lea eax, [ebp - 0x4c]
push eax
sub esp, 8
lea ecx, [ebp - 0x24]
push dword [esi]
call fcn.0045c690
mov byte [ebp - 0x465], al
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x45b74f
mov ecx, dword [esi]
test ecx, ecx
je 0x45b72d
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x45b744
push eax
call fcn.004a62c5
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004a6287
add esp, 8
cmp byte [ebp - 0x465], 0
je 0x45ba9d
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x490]
call fcn.00459940
mov ecx, eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
je 0x45b7b5
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
add dword [ebp - 0x18], 0x18
jmp 0x45b7bf
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.004409c0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x47c]
cmp edx, 8
jb 0x45b803
mov ecx, dword [ebp - 0x490]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b7f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bb57
push edx
push ecx
call fcn.004a6287
add esp, 8
push str.generate_deviceid
mov edx, 0x10
lea ecx, [ebp - 0xf4]
call fcn.004090a0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 9
mov cl, byte [esi + 0x48]
test cl, cl
je 0x45b839
push str.system_uuid
push esi
call fcn.00412180
mov cl, byte [esi + 0x48]
add esp, 8
mov edx, dword [ebp - 0x18]
add edx, 0xffffffe8
test cl, cl
je 0x45b859
cmp dword [edx + 0x14], 8
mov eax, dword [edx + 0x10]
jb 0x45b84e
mov edx, dword [edx]
push eax
mov ecx, esi
call fcn.0040d720
add esp, 4
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 6
call fcn.00408f30
lea eax, [ebp - 0x464]
mov dword [ebp - 0x464], 0
push eax
push 0
push 0
push 0x4eb670
mov esi, 0x43
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov edx, dword [ebp - 0x464]
test eax, eax
jne 0x45b8b4
test edx, edx
je 0x45b8c9
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b8a0
sub ecx, edi
sar ecx, 1
je 0x45b8b4
movzx esi, word [edx]
test edx, edx
je 0x45b8c9
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.00408780
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x44]
mov eax, 0x3a
mov dword [ebp - 0x44], 0
mov word [ebp - 0x46a], ax
xor eax, eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x46c]
push 2
push eax
mov word [ebp - 0x46c], si
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
call fcn.00403940
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x490]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.0045abd0
mov byte [ebp - 4], 0xa
add esp, 4
mov edx, dword [ebp - 0x30]
mov edi, 2
mov dword [ebp - 0x470], edi
cmp edx, 8
jb 0x45b986
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b97c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bb5c
push edx
push ecx
call fcn.004a6287
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x460]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00408890
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
je 0x45b9e2
movups xmm0, xmmword [ebp - 0x490]
mov dword [eax], 0
mov edx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x480]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ebp - 0x18], 0x18
mov word [ebp - 0x490], ax
jmp 0x45b9f8
lea ecx, [ebp - 0x490]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.004409c0
mov edx, dword [ebp - 0x47c]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x45ba36
mov ecx, dword [ebp - 0x490]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ba2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bb61
push edx
push ecx
call fcn.004a6287
add esp, 8
push str.generate_deviceid
mov edx, 0x10
lea ecx, [ebp - 0xf4]
call fcn.004090a0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0xd
mov cl, byte [esi + 0x48]
test cl, cl
je 0x45ba6c
push str.hdd_sn
push esi
call fcn.00412180
mov cl, byte [esi + 0x48]
add esp, 8
mov edx, dword [ebp - 0x18]
add edx, 0xffffffe8
test cl, cl
je 0x45ba8c
cmp dword [edx + 0x14], 8
mov eax, dword [edx + 0x10]
jb 0x45ba81
mov edx, dword [edx]
push eax
mov ecx, esi
call fcn.0040d720
add esp, 4
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 6
call fcn.00408f30
jmp 0x45baa3
mov edi, dword [ebp - 0x470]
mov esi, dword [ebp - 0x494]
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.004593f0
add esp, 4
or edi, 1
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x470], edi
jne 0x45bad7
push 0x20
push str.00000000000000000000000000000000
mov ecx, esi
call fcn.00403940
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x45bae8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x45baf9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x478]
mov eax, dword [eax + 4]
cmp eax, dword [0x507cf4]
jne 0x45bb19
cmp dword [ebp - 0x474], 0
jne 0x45bb19
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x1c]
call fcn.00423220
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.004a6256
mov esp, ebp
pop ebp
ret
call fcn.004ab23f
push 0x8007000e
call fcn.004a7880
push 0x8007000e
call fcn.004a7880
call fcn.004ab23f
call fcn.004ab23f
call fcn.004ab23f
int3