Function at 0xc20690
Capabilities:
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0xc48e5c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x12f4
call fcn.00c347f0
mov eax, dword [0xc57104]
push ebx
xor eax, ebp
xor ebx, ebx
push esi
mov dword [esp + 0x12f8], eax
push edi
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov edi, dword [0xc58190]
mov eax, edi
mov dword [esp + 0x130c], ebx
lea esi, [eax + 1]
jmp 0xc206f0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0xc206f0
sub eax, esi
push eax
push edi
lea ecx, [esp + 0x64]
call fcn.00c01c50
push 1
push ebx
push 0xc4c4b0
lea ecx, [esp + 0x68]
call fcn.00c01e10
push eax
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x68]
call fcn.00c01ae0
xor eax, eax
mov byte [esp + 0xaf8], bl
mov ecx, 0xff
lea edi, [esp + 0xaf9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0xef8], bl
mov ecx, 0xff
lea edi, [esp + 0xef9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x2f8], bl
mov ecx, 0x7f
lea edi, [esp + 0x2f9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x4f8], bl
mov ecx, 0x7f
lea edi, [esp + 0x4f9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0xf8], bl
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0xf9]
rep stosd dword es:[edi], eax
mov ecx, dword [0xc58194]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
xor eax, eax
mov byte [esp + 0x6f8], bl
mov ecx, 0xff
lea edi, [esp + 0x6f9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x78], bl
xor eax, eax
mov ecx, 0x1f
lea edi, [esp + 0x79]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x16
push str.SoftwareNeowizPmang_
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1314], 3
stosb byte es:[edi], al
call fcn.00c01c50
cmp dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x28]
jae 0xc2081a
lea eax, [esp + 0x28]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str.Install
push eax
lea edx, [esp + 0x700]
push 0xc4bac4
push edx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push ebx
lea ecx, [esp + 0x704]
push ecx
push bind
mov dword [esp + 0x30], ebx
call edi
cmp eax, ebx
jne 0xc20a30
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0xafc]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.root
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 0x400
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x58]
mov eax, 0x10
cmp ecx, eax
mov ecx, dword [esp + 0x44]
jae 0xc208ac
lea ecx, [esp + 0x44]
cmp dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
jae 0xc208ba
lea eax, [esp + 0x28]
push ecx
push eax
lea eax, [esp + 0x80]
push 0xc4bac4
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push ebx
lea edx, [esp + 0x84]
push edx
push bind
mov dword [esp + 0x2c], ebx
call edi
cmp eax, ebx
jne 0xc2090d
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp ecx, ebx
je 0xc20901
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
je 0xc20920
push 0x40
push str.Pmang_WebGame_Downloader_ver_2.0
push str.Pmang_SSN
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.Common_
lea edx, [esp + 0xafc]
push edx
lea eax, [esp + 0xf00]
push 0xc4bac4
push eax
call esi
mov eax, dword [esp + 0x68]
mov edi, 0x10
add esp, 0x10
cmp eax, edi
mov eax, dword [esp + 0x44]
jae 0xc20954
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xefc]
push ecx
lea edx, [esp + 0x300]
push str._spmang__s.ini
push edx
call esi
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x54]
add esp, 0x10
cmp eax, edi
jae 0xc2097f
lea esi, [esp + 0x44]
mov edi, 0xc4c804
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0xc20aab
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push ebx
push str.DLVersion
push esi
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0xc209c6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov esi, ebx
cmp dword [esp + 0x3c], 0x10
jb 0xc209da
mov eax, dword [esp + 0x28]
push eax
call fcn.00c328de
add esp, 4
cmp esi, ebx
mov edi, 0xf
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
je 0xc209f6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x58]
mov esi, 0x10
cmp eax, esi
jb 0xc20a10
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00c328de
add esp, 4
cmp dword [esp + 0x74], esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0xc20c1b
mov edx, dword [esp + 0x60]
push edx
jmp 0xc20c13
push 0x40
push str.Pmang_WebGame_Downloader_ver_2.0
push str.Pmang_Install
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x3c]
mov esi, 0x10
cmp eax, esi
jb 0xc20a5d
mov edx, dword [esp + 0x28]
push edx
call fcn.00c328de
add esp, 4
cmp dword [esp + 0x58], esi
mov edi, 0xf
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
jb 0xc20a81
mov eax, dword [esp + 0x44]
push eax
call fcn.00c328de
add esp, 4
cmp dword [esp + 0x74], esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0xc20c7a
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00c328de
add esp, 4
xor eax, eax
jmp 0xc20c20
cmp dword [0xc58198], ebx
jne 0xc20b7f
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x2f8]
push eax
push 0x200
lea ecx, [esp + 0x500]
push ecx
push 0xc4b60c
push str.sDllVer
push str.SERVICEINFO
call esi
test eax, eax
je 0xc20c7e
lea eax, [esp + 0x4f8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0xc20af5
sub eax, edx
mov dword [esp + 0x14], eax
je 0xc20c7e
push str.DllVersion
lea edx, [esp + 0x4fc]
push edx
lea ecx, [esp + 0x18]
call fcn.00c200a0
lea eax, [esp + 0x2f8]
push eax
push 0x200
lea ecx, [esp + 0x100]
push ecx
push 0xc4b60c
push str.sResVer
push str.SERVICEINFO
call esi
test eax, eax
je 0xc20c43
lea eax, [esp + 0xf8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0xc20b56
sub eax, edx
mov dword [esp + 0x14], eax
je 0xc20c43
push str.ResVersion
lea edx, [esp + 0xfc]
push edx
lea ecx, [esp + 0x18]
call fcn.00c200a0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push ebx
push str.DLVersion
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0xc20bb2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov esi, ebx
cmp dword [esp + 0x3c], 0x10
jb 0xc20bc6
mov edx, dword [esp + 0x28]
push edx
call fcn.00c328de
add esp, 4
cmp esi, ebx
mov edi, 0xf
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
je 0xc20be2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x58]
mov esi, 0x10
cmp eax, esi
jb 0xc20bfc
mov eax, dword [esp + 0x44]
push eax
call fcn.00c328de
add esp, 4
cmp dword [esp + 0x74], esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0xc20c1b
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00c328de
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x1304]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x12fc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00c32666
mov esp, ebp
pop ebp
ret
push 0x40
push str.Pmang_WebGame_Downloader_ver_2.0
push 0xc4c780
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x24]
call fcn.00c22280
lea ecx, [esp + 0x10]
call fcn.00c10ab0
lea ecx, [esp + 0x40]
call fcn.00c22280
lea ecx, [esp + 0x5c]
call fcn.00c22280
xor eax, eax
jmp 0xc20c20
push 0x40
push str.Pmang_WebGame_Downloader_ver_2.0
push 0xc4c760
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x24]
call fcn.00c22280
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0xc20c68
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0xc20c68