Function at 0x509ad0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638742
mov eax, dword fs:[0]
push eax
sub esp, 0x3cc
mov eax, dword [0x6f8b74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1c
push 0
mov dword [ebp - 0x314], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x3d8], 0x6be150
mov dword [ebp - 0x3c8], 0x6be160
push 0
lea eax, [ebp - 0x3c0]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x314], 1
push eax
lea ecx, [ebp - 0x370]
mov dword [ebp - method.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x374], 0x50
movlpd qword [ebp - 0x3d0], xmm0
call fcn.0043e0a0
lea eax, [ebp - 0x3c8]
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x3c8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x3c8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x3cc], eax
mov eax, dword [ebp - 0x3d8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x3d8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x3dc], eax
mov eax, dword [ebp - 0x3d8]
mov dword [ebp - 4], 5
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x3d8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x3dc], eax
lea eax, [ebp - 0x3c0]
mov ecx, eax
mov dword [ebp - 0x318], eax
call fcn.0043dcd0
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x388], 0
mov dword [ebp - 0x384], 0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 7
push eax
lea eax, [ebp - 0x3c8]
push eax
call fcn.00509370
add esp, 8
lea ecx, [ebp - 0x310]
call fcn.005097e0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x310]
call fcn.0050cc40
push str.oobelibMkey.log
push eax
lea eax, [ebp - 0x2c0]
mov byte [ebp - 4], 9
push eax
call fcn.005096e0
add esp, 0xc
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 0xb
cmp eax, 0x10
jb 0x509cb0
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00436220
cmp dword [ebp - 0x2ac], 0x10
lea eax, [ebp - 0x2c0]
push 0x677a48
cmovae eax, dword [ebp - 0x2c0]
push eax
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
call fcn.005c614d
add esp, 8
lea ecx, [ebp - 0x328]
mov esi, eax
call fcn.00466990
cmp dword [ebp - 0x324], 0
mov byte [ebp - 4], 0xc
je 0x50a0e5
push 8
call fcn.0050eac0
mov byte [edi], al
mov word [edi + 1], 0x3030
mov byte [edi + 3], 0x30
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
mov dword [ebp - 0x264], 0xf
mov dword [ebp - 0x268], 0
mov byte [ebp - 0x278], 0
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.0050a1b0
cmp dword [ebp - 0x21c], 0x10
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
cmp dword [ebp - 0x264], 0x10
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov eax, dword [ecx + 4]
mov dword [edi + 8], eax
lea eax, [ebp - 0x278]
cmovae eax, dword [ebp - 0x278]
mov eax, dword [eax]
mov dword [edi + 0xc], eax
mov dword [ebp - 0x24c], 0xf
mov dword [ebp - 0x250], 0
mov byte [ebp - 0x260], 0
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.0050a590
cmp dword [ebp - 0x24c], 0x10
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
mov eax, dword [eax]
mov dword [edi + 0x10], eax
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.0050a370
cmp dword [ebp - 0x234], 0x10
lea ecx, [ebp - 0x248]
cmovae ecx, dword [ebp - 0x248]
mov eax, dword [ecx]
mov dword [edi + 0x14], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0x18], eax
mov dword [ebp - 0x294], 0xf
mov dword [ebp - 0x298], 0
mov byte [ebp - 0x2a8], 0
mov dword [ebp - 0x27c], 0xf
mov dword [ebp - 0x280], 0
mov byte [ebp - 0x290], 0
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.0050af90
mov ecx, dword [ebp - 0x27c]
lea eax, [ebp - 0x290]
mov edx, dword [ebp - 0x290]
add esp, 0x2c
cmp ecx, 0x10
cmovae eax, edx
mov eax, dword [eax]
mov dword [edi + 0x1c], eax
mov byte [edi + 0x20], 0
test esi, esi
je 0x509fc4
push esi
push str._n_GenerateMachineSignature_start_n
call fcn.005d274b
push esi
push str._nAddressRep
call fcn.005d274b
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
push esi
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.005d274b
push esi
push str.deviceIDRep
call fcn.005d274b
cmp dword [ebp - 0x264], 0x10
lea eax, [ebp - 0x278]
push esi
cmovae eax, dword [ebp - 0x278]
push eax
call fcn.005d274b
push esi
push str._nboardRep
call fcn.005d274b
cmp dword [ebp - 0x24c], 0x10
lea eax, [ebp - 0x260]
push esi
cmovae eax, dword [ebp - 0x260]
push eax
call fcn.005d274b
push esi
push str._nbiosRep
call fcn.005d274b
add esp, 0x40
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 0x10
cmovae eax, dword [ebp - 0x248]
push esi
push eax
call fcn.005d274b
push esi
push str._ncpuFullRep
call fcn.005d274b
cmp dword [ebp - 0x294], 0x10
lea eax, [ebp - 0x2a8]
push esi
cmovae eax, dword [ebp - 0x2a8]
push eax
call fcn.005d274b
push esi
push str._noutMSignature
call fcn.005d274b
push esi
push edi
call fcn.005d274b
push esi
push str._n_GenerateMachineSignature_end_n
call fcn.005d274b
push esi
call fcn.005c61db
mov ecx, dword [ebp - 0x27c]
add esp, 0x34
mov edx, dword [ebp - 0x290]
cmp ecx, 0x10
jb 0x509fd9
lea eax, [ecx + 1]
push eax
push edx
lea ecx, [ebp - 0x290]
call fcn.00436220
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x27c], 0xf
mov dword [ebp - 0x280], 0
mov byte [ebp - 0x290], 0
cmp eax, 0x10
jb 0x50a012
inc eax
lea ecx, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2a8]
call fcn.00436220
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x294], 0xf
mov dword [ebp - 0x298], 0
mov byte [ebp - 0x2a8], 0
cmp eax, 0x10
jb 0x50a04b
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00436220
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
cmp eax, 0x10
jb 0x50a084
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00436220
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x24c], 0xf
mov dword [ebp - 0x250], 0
mov byte [ebp - 0x260], 0
cmp eax, 0x10
jb 0x50a0bd
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00436220
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x264], 0xf
mov dword [ebp - 0x268], 0
mov byte [ebp - 0x278], 0
call fcn.00435a90
jmp 0x50a118
push edi
call fcn.0050e9a0
add esp, 4
test esi, esi
je 0x50a118
push esi
push str._n_GenerateMachineSignature_AssignRandomIDAsSignature_n
call fcn.005d274b
push esi
push str._noutMSignature
call fcn.005d274b
push esi
push edi
call fcn.005d274b
push esi
call fcn.005c61db
add esp, 0x1c
lea ecx, [ebp - 0x328]
call fcn.00466af0
mov eax, dword [ebp - 0x2ac]
cmp eax, 0x10
jb 0x50a141
inc eax
lea ecx, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c0]
call fcn.00436220
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x2ac], 0xf
mov dword [ebp - 0x2b0], 0
mov byte [ebp - 0x2c0], 0
call fcn.00509940
lea ecx, [ebp - 0x370]
call fcn.0043a330
lea eax, [ebp - 0x370]
mov dword [ebp - 4], 0x13
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.005a3557
add esp, 4
mov al, 1
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.005b56fe
mov esp, ebp
pop ebp
ret