Function at 0x420cc0
Capabilities:
Get common file path
Query or enumerate registry value
Resolve function by parsing pe exports
Set current directory
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4736a5
mov eax, dword fs:[0]
push eax
sub esp, 0x678
mov eax, dword [0x48a2c4]
xor eax, esp
mov dword [esp + 0x674], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48a2c4]
xor eax, esp
push eax
lea eax, [esp + 0x68c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x69c]
mov esi, dword [esp + 0x6a0]
xor edi, edi
mov dword [esp + 0x1c], edi
mov eax, dword [0x488014]
mov ecx, 1
mov ebp, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x694], ecx
mov dword [ebx], eax
push 0x206
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x76]
xor eax, eax
push edi
push ecx
mov word [esp + 0x7c], ax
call fcn.004471a0
mov eax, dword [0x48bdd4]
add esp, 0xc
cmp eax, edi
jne 0x420d6d
call fcn.0041e140
mov eax, dword [0x48bdd4]
cmp eax, edi
je 0x420d9c
call eax
cmp eax, edi
je 0x420d9c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
cmp eax, edi
je 0x420d9c
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
test eax, eax
je 0x420d9c
push str...configdefaultskin
mov ecx, ebx
call fcn.00414ae0
jmp 0x421158
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x40]
push edx
push str.DefaultSkin
push str.Software360Safe
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [esp + 0x70]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x420dc7
sub eax, edx
sar eax, 1
mov ebx, 7
jne 0x420f2a
mov dword [esp + 0x3c], vtable.CXMLArchiveItem.0
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
push 0x478280
lea ecx, [esp + 0x28]
mov byte [esp + 0x698], 2
call fcn.0041d310
push str.configconfig.xml
lea ecx, [esp + 0x1c]
mov byte [esp + 0x698], 3
call fcn.0041d310
lea eax, [esp + 0x24]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
push esi
lea ecx, [esp + 0x5c]
mov byte [esp + 0x6a4], 4
call fcn.00420790
lea ecx, [esp + 0x18]
call fcn.0041f5b0
lea ecx, [esp + 0x24]
mov byte [esp + 0x694], bl
call fcn.0041f5b0
push str.Root.Config_default
lea ecx, [esp + 0x2c]
call fcn.0041d310
push eax
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x54]
mov byte [esp + 0x69c], 8
call fcn.00420030
push eax
lea ecx, [esp + 0x40]
call fcn.0041de30
lea ecx, [esp + 0x60]
call fcn.0041e030
lea ecx, [esp + 0x28]
mov byte [esp + 0x694], bl
call fcn.0041f5b0
push str.DefaultSkin
lea ecx, [esp + 0x1c]
call fcn.0041d310
push str.configdefaultskin
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x6a0], 9
call fcn.0041e660
lea ecx, [esp + 0x18]
call fcn.0041f5b0
mov ebp, dword [esp + 0x2c]
push ebp
push 0x208
lea edx, [esp + 0x78]
push edx
call fcn.0041d180
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebp
push 1
push str.DefaultSkin
push str.Software360Safe
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov byte [esp + 0x694], 2
lea ecx, [esp + 0x4c]
call fcn.0041f6f0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x694], 1
call fcn.0041e030
mov esi, dword [esp + 0x20]
push 0x47840c
mov ecx, esi
call fcn.00414ae0
lea eax, [esp + 0x70]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, esi
call fcn.00412590
mov edx, dword [0x488014]
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
call fcn.00412460
test eax, eax
je 0x420f75
mov ecx, dword [esp + 0x18]
mov eax, 0x5c
mov word [ecx], ax
push 1
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
mov byte [esp + 0x69c], 0xa
mov dword [esp + 0x24], 3
call fcn.0041f520
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x694], 0xb
mov dword [esp + 0x1c], ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x420fce
cmp dx, di
je 0x420fca
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x420fce
add eax, 4
add ecx, 4
cmp dx, di
jne 0x420fa8
xor eax, eax
jmp 0x420fd3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x42103c
mov eax, dword [0x488014]
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], eax
call fcn.00412460
mov esi, dword [esp + 0x24]
test eax, eax
je 0x420ffb
mov ecx, 0x2f
mov word [esi], cx
mov ecx, dword [esp + 0x20]
push 1
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x69c], 0xc
mov dword [esp + 0x24], 0xf
call fcn.0041f520
lea ecx, [esp + 0x24]
push ecx
mov ebx, 0x1f
push eax
mov dword [esp + 0x24], ebx
call fcn.0041d120
test al, al
jne 0x421040
mov byte [esp + 0x17], al
jmp 0x421045
mov esi, dword [esp + 0x24]
mov byte [esp + 0x17], 1
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test bl, 0x10
je 0x421080
mov eax, dword [esp + 0x30]
and ebx, 0xffffffef
lea edx, [eax - 0xc]
mov dword [esp + 0x1c], ebx
cmp edx, dword [0x488010]
je 0x421080
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x421080
mov eax, dword [esp + 0x30]
add eax, 0xfffffff4
push eax
call fcn.00448106
add esp, 4
test bl, 8
je 0x4210aa
and ebx, 0xfffffff7
lea eax, [esi - 0xc]
mov dword [esp + 0x1c], ebx
cmp eax, dword [0x488010]
je 0x4210aa
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x4210aa
push esi
call fcn.00448106
add esp, 4
test bl, 4
je 0x4210df
mov eax, dword [esp + 0x28]
and ebx, 0xfffffffb
lea ecx, [eax - 0xc]
mov dword [esp + 0x1c], ebx
cmp ecx, dword [0x488010]
je 0x4210df
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4210df
mov eax, dword [esp + 0x28]
add eax, 0xfffffff4
push eax
call fcn.00448106
add esp, 4
mov dword [esp + 0x694], 1
test bl, 2
je 0x421118
mov esi, dword [esp + 0x18]
and ebx, 0xfffffffd
lea edx, [esi - 0xc]
mov dword [esp + 0x1c], ebx
cmp edx, dword [0x488010]
je 0x421118
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x421118
push esi
call fcn.00448106
add esp, 4
cmp byte [esp + 0x17], 0
mov esi, dword [esp + 0x20]
je 0x421133
mov eax, dword [esi]
mov eax, dword [eax - 8]
push 1
dec eax
push eax
mov ecx, esi
call fcn.0041dea0
mov eax, dword [esi]
push eax
push 0
call fcn.0041d4c0
add esp, 8
test eax, eax
jne 0x421152
mov ecx, dword [esp + 0x20]
push str...configdefaultskin
call fcn.00414ae0
mov ebx, dword [esp + 0x20]
xor edi, edi
push 0x206
lea edx, [esp + 0x27e]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x284], cx
call fcn.004471a0
push 0x206
lea ecx, [esp + 0x492]
xor eax, eax
push edi
push ecx
mov word [esp + 0x498], ax
call fcn.004471a0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0x18
lea edx, [esp + 0x278]
push edx
push 0x104
call esi
mov eax, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call edi
lea eax, [esp + 0x480]
push eax
push 0x104
call esi
lea ecx, [esp + 0x278]
push ecx
call edi
lea edx, [ebp - 0xc]
cmp edx, dword [0x488010]
je 0x4211f0
lea esi, [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4211f0
push esi
call fcn.00448106
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x68c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x674]
xor ecx, esp
call fcn.00447157
add esp, 0x684
ret