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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d12f
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x596634]
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.004dcfa0
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 0x5509b8
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.004126e0
mov ecx, eax
test ecx, ecx
je 0x45effc
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.0050da02
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x310], edx
push eax
call fcn.0050f11d
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.0050f11d
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.0050f11d
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.0050f11d
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.0050f11d
add esp, 0x2c
test eax, eax
jne 0x45ea76
mov esi, dword [ebp - 0x2c0]
inc esi
jmp 0x45ea78
xor esi, esi
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x2f4]
push eax
call fcn.0050f11d
add esp, 8
test eax, eax
jne 0x45ea9f
mov eax, dword [ebp - 0x2e0]
add eax, 0x76c
jmp 0x45eaa1
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 0x550f78
push eax
call fcn.0041dc70
add esp, 0x20
jmp 0x45ead5
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
jne 0x45eb20
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x45eb04
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.00496d46
mov esp, ebp
pop ebp
ret
call fcn.004126e0
mov ecx, eax
test ecx, ecx
je 0x45f006
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x304], eax
mov byte [ebp - 4], 3
call fcn.004126e0
mov ecx, eax
test ecx, ecx
je 0x45f010
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.0041d980
test al, al
jne 0x45eb88
push 8
push str._PanMing
lea ecx, [ebp - 0x2f8]
call fcn.0040de70
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.0042d660
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 0x45ebca
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 0x559614
push 0x559618
call ebx
call fcn.004126e0
mov ecx, eax
test ecx, ecx
je 0x45f01a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2f8], eax
mov byte [ebp - 4], 6
call fcn.004126e0
mov ecx, eax
test ecx, ecx
je 0x45f024
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.0041d980
test al, al
jne 0x45ec51
push 0x20
push str.45476F8083D74BA28A2DD8ED399737B7
lea ecx, [ebp - 0x2fc]
call fcn.0040de70
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.004a0f80
add esp, 0xc
push eax
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 9
call fcn.00416260
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 0x45eca3
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 0x45ecc4
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 0x555618
push 0x559618
call ebx
call fcn.004126e0
mov ecx, eax
test ecx, ecx
je 0x45f02e
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.00432d80
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 0x45ed5f
push 0x104
lea ecx, [ebp - 0x300]
call fcn.0040cad0
mov ebx, dword [ebp - 0x300]
cmp dword [ebx - 8], 0x104
jl 0x45f038
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 0x45ed90
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.004218e0
mov eax, dword [ebp - 0x300]
push dword [eax - 8]
push eax
call fcn.0050ae7c
mov edx, eax
add esp, 8
test edx, edx
js 0x45f038
mov ecx, dword [ebp - 0x300]
cmp edx, dword [ecx - 8]
jg 0x45f038
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 0x45ee69
lea edx, [eax - 0x10]
mov byte [ebp - 4], 6
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45ee1f
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 0x45ee3a
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 0x45ee5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30c]
add edx, 0xfffffff0
jmp 0x45eaeb
lea ecx, [ebp - 0x304]
call fcn.00417850
push str._PanMing
lea ecx, [ebp - 0x2fc]
call fcn.004155f0
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.0042d660
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 0x45eec6
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 0x55961c
push 0x559618
call ebx
lea ecx, [ebp - 0x2f8]
call fcn.00417850
push str.45476F8083D74BA28A2DD8ED399737B7
lea ecx, [ebp - 0x2fc]
call fcn.004155f0
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.004a0f80
add esp, 0xc
push eax
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 0xe
call fcn.00416260
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 0x45ef52
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 0x45ef73
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 0x559620
push 0x559618
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 0x45efae
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 0x45efc9
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 0x45ee5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30c]
add edx, 0xfffffff0
jmp 0x45eaeb
push 0x80004005
call fcn.0040af60
push 0x80004005
call fcn.0040af60
push 0x80004005
call fcn.0040af60
push 0x80004005
call fcn.0040af60
push 0x80004005
call fcn.0040af60
push 0x80004005
call fcn.0040af60
push 0x80070057
call fcn.0040af60
int3