Function at 0x40cb80
Capabilities:
Create directory
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x44ad0e
mov eax, dword fs:[0]
push eax
sub esp, 0x408
mov eax, dword [0x462e60]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x462e60]
xor eax, esp
push eax
lea eax, [esp + 0x41c]
mov dword fs:[0], eax
push 0x2b
mov esi, ecx
xor ebx, ebx
mov edi, 0xf
push str.HKEY_LOCAL_MACHINE_SOFTWARE_xingman_Luvinia
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
call fcn.00402080
push 0x212
lea eax, [esp + 0x208]
push ebx
push eax
mov dword [esp + 0x430], ebx
mov dword [esp + 0x40], 0x212
call fcn.00432700
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 1
push ebx
push str.SOFTWAREXINGMANLUVINIA
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x208]
push eax
push ebx
push ebx
push str.Client_Path
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x204], bl
je 0x40cce0
lea eax, [esp + 0x204]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40cc76
sub eax, edx
push eax
lea eax, [esp + 0x208]
push eax
lea ecx, [esp + 0x40]
call fcn.00402080
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x40]
lea edi, [esi + 0xa0]
push ecx
mov ecx, edi
mov byte [esp + 0x430], 1
call fcn.00401f30
mov ebp, 0x10
cmp dword [esp + 0x50], ebp
mov byte [esp + 0x424], bl
jb 0x40cccf
mov edx, dword [esp + 0x3c]
push edx
call fcn.00415b52
add esp, 4
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esi + 0x84]
call fcn.00401f30
jmp 0x40cce5
mov ebp, 0x10
lea eax, [esi + 0x84]
push str.PackRes.cfg
push eax
lea eax, [esp + 0x5c]
push eax
mov byte [0x464310], bl
call fcn.004021b0
add esp, 0xc
cmp dword [esp + 0x6c], ebp
mov eax, dword [esp + 0x58]
mov byte [esp + 0x424], 2
jae 0x40cd1a
lea eax, [esp + 0x58]
lea ecx, [esp + 0xc4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40cfb7
push 0x104
call fcn.00415b57
add esp, 4
mov edi, eax
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebp, 0xf
mov eax, edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40cd63
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x40]
call fcn.00402080
cmp edi, ebx
je 0x40cd86
push edi
call fcn.00415b52
add esp, 4
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
lea ecx, [esp + 0x70]
mov byte [esp + 0x424], 4
call fcn.0040c8c0
push 2
push ebx
lea edx, [esp + 0x40]
push edx
push ebx
lea ecx, [esp + 0x80]
call fcn.0040c3a0
push 0x104
call fcn.00415b57
add esp, 4
mov ebp, eax
push ebp
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40ce50
mov eax, ebp
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40cdf2
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x20]
call fcn.00402080
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x20]
lea edi, [esi + 0xa0]
push eax
mov ecx, edi
mov byte [esp + 0x430], 5
call fcn.00401f30
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x424], 4
jb 0x40ce41
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00415b52
add esp, 4
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esi + 0x84]
call fcn.00401f30
push str.PackRes.cfg
lea eax, [esi + 0x84]
push eax
lea edx, [esp + 0x20]
push edx
call fcn.004021b0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x430], 6
call fcn.00401f30
mov edi, 0x10
cmp dword [esp + 0x30], edi
mov byte [esp + 0x424], 4
jb 0x40ce9e
mov eax, dword [esp + 0x1c]
push eax
call fcn.00415b52
add esp, 4
cmp ebp, ebx
je 0x40ceab
push ebp
call fcn.00415b52
add esp, 4
cmp dword [esp + 0x6c], edi
mov eax, dword [esp + 0x58]
jae 0x40ceb9
lea eax, [esp + 0x58]
lea ecx, [esp + 0xc4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40cf6e
push ebx
push 0x44dfb8
push 0x44df98
mov ecx, esi
call fcn.00417168
cmp dword [esp + 0x88], edi
jb 0x40cef9
mov edx, dword [esp + 0x74]
push edx
call fcn.00415b52
add esp, 4
cmp dword [esp + 0x50], edi
mov esi, 0xf
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
jb 0x40cf23
mov eax, dword [esp + 0x3c]
push eax
call fcn.00415b52
add esp, 4
cmp dword [esp + 0x6c], edi
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
jb 0x40cf42
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00415b52
add esp, 4
cmp dword [esp + 0xc0], edi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
jb 0x40cf67
mov edx, dword [esp + 0xac]
push edx
call fcn.00415b52
add esp, 4
xor eax, eax
jmp 0x40d104
cmp dword [esp + 0x88], edi
jb 0x40cf84
mov eax, dword [esp + 0x74]
push eax
call fcn.00415b52
add esp, 4
cmp dword [esp + 0x50], edi
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
mov byte [esp + 0x424], 2
jb 0x40cfb5
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00415b52
add esp, 4
mov ebp, edi
push str.updatefiles
lea eax, [esi + 0x84]
push eax
lea edx, [esp + 0x94]
push edx
call fcn.004021b0
add esp, 0xc
cmp dword [esp + 0xa4], ebp
mov eax, dword [esp + 0x90]
mov byte [esp + 0x424], 7
jae 0x40cff2
lea eax, [esp + 0x90]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0xb
push 0x44d6a0
lea ecx, [esi + 0xbc]
call fcn.00402080
push 0x44df7c
lea edi, [esi + 0xa0]
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.004021b0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0xf4]
mov byte [esp + 0x430], 8
call fcn.00401f30
cmp dword [esp + 0x30], ebp
mov byte [esp + 0x424], 7
jb 0x40d057
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00415b52
add esp, 4
push 0x44df70
lea edx, [esp + 0x1c]
push edi
push edx
call fcn.004021b0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0xd8]
mov byte [esp + 0x430], 9
call fcn.00401f30
cmp dword [esp + 0x30], ebp
jb 0x40d094
mov eax, dword [esp + 0x1c]
push eax
call fcn.00415b52
add esp, 4
cmp dword [esp + 0xa4], ebp
jb 0x40d0ad
mov ecx, dword [esp + 0x90]
push ecx
call fcn.00415b52
add esp, 4
cmp dword [esp + 0x6c], ebp
mov esi, 0xf
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
jb 0x40d0da
mov edx, dword [esp + 0x58]
push edx
call fcn.00415b52
add esp, 4
cmp dword [esp + 0xc0], ebp
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
jb 0x40d0ff
mov eax, dword [esp + 0xac]
push eax
call fcn.00415b52
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x41c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.00431e6f
add esp, 0x414
ret