Function at 0x45f180
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53db7f
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x597644]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004dda00
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push 0x5519d0
push eax
call esi
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push str.lds.set
lea eax, [ebp - 0x21c]
push eax
call esi
call fcn.00412520
mov ecx, eax
test ecx, ecx
je 0x45f87c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30c], eax
mov dword [ebp - 4], 0
push 0
mov byte [ebp - 4], 1
call fcn.0050e462
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x310], edx
push eax
call fcn.0050fb7d
or edi, 0xffffffff
test eax, eax
lea eax, [ebp - 0x314]
mov ebx, edi
cmove ebx, dword [ebp - 0x240]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0050fb7d
test eax, eax
mov ecx, edi
lea eax, [ebp - 0x314]
cmove ecx, dword [ebp - 0x260]
push eax
lea eax, [ebp - 0x288]
mov dword [ebp - 0x2fc], ecx
push eax
call fcn.0050fb7d
test eax, eax
mov ecx, edi
lea eax, [ebp - 0x314]
cmove ecx, dword [ebp - 0x280]
push eax
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x2f8], ecx
push eax
call fcn.0050fb7d
xor ecx, ecx
test eax, eax
lea eax, [ebp - 0x314]
cmove ecx, dword [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x308], ecx
push eax
call fcn.0050fb7d
add esp, 0x2c
test eax, eax
jne 0x45f2f6
mov esi, dword [ebp - 0x2c0]
inc esi
jmp 0x45f2f8
xor esi, esi
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x2f4]
push eax
call fcn.0050fb7d
add esp, 8
test eax, eax
jne 0x45f31f
mov eax, dword [ebp - 0x2e0]
add eax, 0x76c
jmp 0x45f321
xor eax, eax
push ebx
push dword [ebp - 0x2fc]
push dword [ebp - 0x2f8]
push dword [ebp - 0x308]
push esi
push eax
lea eax, [ebp - 0x30c]
push 0x551f90
push eax
call fcn.0041dac0
add esp, 0x20
jmp 0x45f355
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
jne 0x45f3a0
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x45f384
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
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004982ff
mov esp, ebp
pop ebp
ret
call fcn.00412520
mov ecx, eax
test ecx, ecx
je 0x45f886
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x304], eax
mov byte [ebp - 4], 3
call fcn.00412520
mov ecx, eax
test ecx, ecx
je 0x45f890
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2f8], eax
push str._PanMing
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 4
call fcn.0041d7d0
test al, al
jne 0x45f408
push 8
push str._PanMing
lea ecx, [ebp - 0x2f8]
call fcn.0040dcb0
lea eax, [ebp - 0x304]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.0042d4d0
mov edx, dword [ebp - 0x2f8]
add esp, 0xc
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f44a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x304]
push 0x55a6e4
push 0x55a6e8
call ebx
call fcn.00412520
mov ecx, eax
test ecx, ecx
je 0x45f89a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2f8], eax
mov byte [ebp - 4], 6
call fcn.00412520
mov ecx, eax
test ecx, ecx
je 0x45f8a4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2fc], eax
push str.45476F8083D74BA28A2DD8ED399737B7
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 7
call fcn.0041d7d0
test al, al
jne 0x45f4d1
push 0x20
push str.45476F8083D74BA28A2DD8ED399737B7
lea ecx, [ebp - 0x2fc]
call fcn.0040dcb0
lea eax, [ebp - 0x2fc]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.004a2530
add esp, 0xc
push eax
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 9
call fcn.004160a0
mov edx, dword [ebp - 0x308]
mov eax, edi
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f523
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2fc]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f544
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x2f8]
lea eax, [ebp - 0x21c]
push eax
push esi
push 0x556630
push 0x55a6e8
call ebx
call fcn.00412520
mov ecx, eax
test ecx, ecx
je 0x45f8ae
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x300], eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0xa
push 1
push eax
mov dword [ebp - 0x318], 0x208
mov dword [ebp - 0x31c], 1
call fcn.00432bf0
add esp, 8
mov dword [ebp - 0x308], eax
mov ebx, dword [ebp - 0x300]
mov edx, 1
mov byte [ebp - 4], 0xb
mov ecx, dword [ebx - 8]
sub edx, dword [ebx - 4]
sub ecx, 0x104
or ecx, edx
jge 0x45f5df
push 0x104
lea ecx, [ebp - 0x300]
call fcn.0040c910
mov ebx, dword [ebp - 0x300]
cmp dword [ebx - 8], 0x104
jl 0x45f8b8
mov dword [ebx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [ebp - 0x300]
mov word [eax + 0x208], cx
mov eax, dword [ebp - 0x308]
cmp dword [eax + 0x14], 8
jb 0x45f610
mov eax, dword [eax]
lea ecx, [ebp - 0x318]
push ecx
push ebx
lea ecx, [ebp - 0x31c]
push ecx
push str.VendorID
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0xa
call fcn.00421740
mov eax, dword [ebp - 0x300]
push dword [eax - 8]
push eax
call fcn.0050b8dc
mov edx, eax
add esp, 8
test edx, edx
js 0x45f8b8
mov ecx, dword [ebp - 0x300]
cmp edx, dword [ecx - 8]
jg 0x45f8b8
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x300]
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0x300]
cmp dword [eax - 0xc], ecx
jne 0x45f6e9
lea edx, [eax - 0x10]
mov byte [ebp - 4], 6
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f69f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45f6ba
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x304]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f6db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30c]
add edx, 0xfffffff0
jmp 0x45f36b
lea ecx, [ebp - 0x304]
call fcn.00417690
push str._PanMing
lea ecx, [ebp - 0x2fc]
call fcn.00415430
lea eax, [ebp - 0x304]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x2fc]
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.0042d4d0
mov edx, dword [ebp - 0x2fc]
add esp, 0xc
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f746
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x304]
push 0x55a6ec
push 0x55a6e8
call ebx
lea ecx, [ebp - 0x2f8]
call fcn.00417690
push str.45476F8083D74BA28A2DD8ED399737B7
lea ecx, [ebp - 0x2fc]
call fcn.00415430
lea eax, [ebp - 0x2fc]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.004a2530
add esp, 0xc
push eax
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 0xe
call fcn.004160a0
mov edx, dword [ebp - 0x308]
mov eax, edi
mov byte [ebp - 4], 0xd
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f7d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2fc]
mov eax, edi
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f7f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x2f8]
lea eax, [ebp - 0x21c]
push eax
push esi
push 0x55a6f0
push 0x55a6e8
call ebx
mov edx, dword [ebp - 0x300]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f82e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45f849
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x304]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f6db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30c]
add edx, 0xfffffff0
jmp 0x45f36b
push 0x80004005
call fcn.0040ada0
push 0x80004005
call fcn.0040ada0
push 0x80004005
call fcn.0040ada0
push 0x80004005
call fcn.0040ada0
push 0x80004005
call fcn.0040ada0
push 0x80004005
call fcn.0040ada0
push 0x80070057
call fcn.0040ada0
int3