Function at 0x4671a0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x641932
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c4
jmp 0x64e4d9
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x5a8], esi
call fcn.00464e00
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [sym.imp.user32.dll_LoadCursorA]
mov dword [esi + 0x36c], eax
xor eax, eax
push 0x7f00
push eax
mov dword [esi], edi
mov dword [esi + 0x370], ecx
mov dword [ebp - 0x5d0], 0xb
mov dword [ebp - 0x5cc], 0x466c30
mov dword [ebp - 0x5c8], eax
mov dword [ebp - 0x5c4], 4
mov dword [ebp - 0x5c0], edi
mov dword [ebp - 0x5bc], eax
call ebx
push 0x68
push edi
mov dword [ebp - 0x5b8], eax
call ebx
push 4
mov dword [ebp - 0x5b8], eax
call dword [sym.imp.gdi32.dll_GetStockObject]
lea edx, [ebp - 0x5d0]
xor ebx, ebx
push edx
mov dword [ebp - 0x5b4], eax
mov dword [ebp - 0x5b0], ebx
mov dword [ebp - 0x5ac], str.Risk_Your_Life
call dword [sym.imp.user32.dll_RegisterClassA]
test ax, ax
je 0x467cf0
mov eax, dword [esi + 0x370]
mov ecx, dword [esi + 0x36c]
push ebx
push edi
push ebx
push ebx
push eax
push ecx
push ebx
push ebx
push 0x90000000
push str.Risk_Your_Life
push str.Risk_Your_Life
push ebx
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [esi + 4], eax
mov edx, dword [0x6a084c]
mov dword [0x940f18], eax
mov dword [ebp - 0x57c], ebx
mov dword [ebp - 0x574], pe_nt_image_headers32
cmp dword [edx + 0x278], 5
jne 0x4672d6
push str.SoftwareGamaSoftMP_Client_MY_
lea eax, [ebp - 0x364]
push eax
jmp 0x4672e2
push str.SoftwareGamaSoftMP_Client
lea ecx, [ebp - 0x364]
push ecx
call fcn.0061660d
add esp, 8
lea edx, [ebp - 0x570]
push edx
push 0x20019
push ebx
lea eax, [ebp - 0x364]
push eax
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x467cde
mov ecx, dword [0x6a084c]
mov eax, dword [ecx + 0x27c]
sub eax, ebx
je 0x46736f
dec eax
je 0x46734b
dec eax
jne 0x46739f
lea edx, [ebp - 0x574]
push edx
mov edx, dword [ebp - 0x570]
lea eax, [esi + 0xa8]
push eax
lea ecx, [ebp - 0x57c]
push ecx
push ebx
push str.BGFolder
push edx
jmp 0x467391
lea eax, [ebp - 0x574]
push eax
mov eax, dword [ebp - 0x570]
lea ecx, [esi + 0xa8]
push ecx
lea edx, [ebp - 0x57c]
push edx
push ebx
push str.Folder
push eax
jmp 0x467391
lea ecx, [ebp - 0x574]
push ecx
mov ecx, dword [ebp - 0x570]
lea edx, [esi + 0xa8]
push edx
lea eax, [ebp - 0x57c]
push eax
push ebx
push str.TestFolder
push ecx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x467cde
lea edi, [esi + 0xa8]
push edi
push str._sMp.INI
push 0x688d38
call fcn.0061660d
push 0x65416c
push 0x688d38
call fcn.00617c05
add esp, 0x14
cmp eax, ebx
je 0x467cd1
push eax
call fcn.0061792d
add esp, 4
lea ecx, [esi + 0x1ac]
call fcn.00599250
push edi
lea edx, [ebp - 0x25c]
push str._sRenderOption.dat
push edx
call fcn.0061660d
lea eax, [ebp - 0x25c]
push 0x65416c
push eax
call fcn.00617c05
add esp, 0x14
cmp eax, ebx
je 0x467cd1
push eax
call fcn.0061792d
lea ecx, [ebp - 0x25c]
push ecx
call fcn.0059a4e0
mov edx, dword [ebp - 0x570]
add esp, 8
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esi + 0x34c]
cmp dword [eax + 0x278], ebx
jne 0x467446
call fcn.00524ef0
call dword [sym.imp.winmm.dll_timeGetTime]
push edi
lea ecx, [ebp - 0x14c]
push str._sScript.mcf
push ecx
mov dword [0x69ed38], eax
call fcn.0061660d
lea edx, [ebp - 0x14c]
push edx
call fcn.004e4550
add esp, 0x10
test al, al
jne 0x467486
push ebx
push str.Program_Error
push str.Cant_load_Language_Script.
jmp 0x467ce9
push edi
lea eax, [ebp - 0x14c]
push str._sVersionInfo.dat
push eax
call fcn.0061660d
lea ecx, [ebp - 0x14c]
push 0x654104
push ecx
call fcn.00617c05
lea edx, [ebp - 0x5a4]
push edx
mov ebx, eax
push 0x64fb4c
push ebx
call fcn.00617cd1
push ebx
call fcn.0061792d
mov eax, dword [ebp - 0x5a4]
mov ecx, dword [esi + 0x348]
add eax, 0x64
mov dword [esi + 0x360], eax
mov eax, dword [ecx + 0x1a3c]
add esp, 0x24
or ebx, 0xffffffff
test eax, eax
jne 0x467507
cmp dword [0x940f7c], ebx
jle 0x467507
mov ebx, dword [sym.imp.user32.dll_ShowCursor]
push 0
call ebx
cmp eax, 0xffffffff
mov dword [0x940f7c], eax
jg 0x4674f6
or ebx, 0xffffffff
push edi
lea edx, [ebp - 0x14c]
push str._sClient.exe
push edx
call fcn.0061660d
lea eax, [ebp - 0x5a0]
push eax
lea ecx, [ebp - 0x14c]
push ecx
call fcn.00554120
add esp, 0x14
test eax, eax
jne 0x4676cb
push edi
lea edx, [ebp - 0x14c]
push str._sNPCScript.mcf
push edx
call fcn.0061660d
lea eax, [ebp - 0x59c]
push eax
lea ecx, [ebp - 0x14c]
push ecx
call fcn.00554120
add esp, 0x14
test eax, eax
jne 0x4676cb
mov edx, dword [0x6a084c]
cmp dword [edx + 0x27c], 2
push edi
jne 0x467585
push str._sBGItemScript.gsf
lea eax, [ebp - 0x14c]
push eax
jmp 0x467591
push str._sItemScript.gsf
lea ecx, [ebp - 0x14c]
push ecx
call fcn.0061660d
add esp, 0xc
lea edx, [ebp - 0x598]
push edx
lea eax, [ebp - 0x14c]
push eax
call fcn.00554120
add esp, 8
test eax, eax
jne 0x4676cb
push edi
lea ecx, [ebp - 0x14c]
push str._sSkillScript.gsf
push ecx
call fcn.0061660d
lea edx, [ebp - 0x594]
push edx
lea eax, [ebp - 0x14c]
push eax
call fcn.00554120
add esp, 0x14
test eax, eax
jne 0x4676cb
push edi
lea ecx, [ebp - 0x14c]
push str._sMonsterProtoType.gsf
push ecx
call fcn.0061660d
lea edx, [ebp - 0x590]
push edx
lea eax, [ebp - 0x14c]
push eax
call fcn.00554120
add esp, 0x14
test eax, eax
jne 0x4676cb
push edi
lea ecx, [ebp - 0x14c]
push str._sCharacterDataChrEvent.eds
push ecx
call fcn.0061660d
lea edx, [ebp - 0x58c]
push edx
lea eax, [ebp - 0x14c]
push eax
call fcn.00554120
add esp, 0x14
test eax, eax
jne 0x4676cb
push edi
lea ecx, [ebp - 0x14c]
push str._sScript1.gsf
push ecx
call fcn.0061660d
lea edx, [ebp - 0x588]
push edx
lea eax, [ebp - 0x14c]
push eax
call fcn.00554120
add esp, 0x14
test eax, eax
jne 0x4676cb
push edi
lea ecx, [ebp - 0x14c]
push str._sQuest.mcf
push ecx
call fcn.0061660d
lea edx, [ebp - 0x584]
push edx
lea eax, [ebp - 0x14c]
push eax
call fcn.00554120
add esp, 0x14
test eax, eax
jne 0x4676cb
push edi
lea ecx, [ebp - 0x14c]
push str._sChemical.gsf
push ecx
call fcn.0061660d
lea edx, [ebp - 0x580]
push edx
lea eax, [ebp - 0x14c]
push eax
call fcn.00554120
add esp, 0x14
test eax, eax
je 0x4676de
push 0
push 0x6a3938
push 0x6a3b38
push 0
jmp 0x467cea
mov eax, dword [ebp - 0x584]
mov ecx, dword [ebp - 0x580]
mov edx, dword [ebp - 0x588]
xor ecx, eax
mov eax, dword [ebp - 0x58c]
xor ecx, edx
mov edx, dword [ebp - 0x590]
xor ecx, eax
mov eax, dword [ebp - 0x594]
xor ecx, edx
mov edx, dword [ebp - 0x598]
xor ecx, eax
mov eax, dword [ebp - 0x59c]
xor ecx, edx
mov edx, dword [ebp - 0x5a0]
xor ecx, eax
xor ecx, edx
cmp word [esi + 0x366], 5
mov dword [esi + 0x35c], ecx
jne 0x46776d
mov edx, dword [0x6a084c]
mov eax, dword [edx + 0x27c]
sub eax, 0
je 0x467763
dec eax
je 0x467757
dec eax
jne 0x46776d
mov dword [esi + 0x35c], 0x66aa05f3
jmp 0x46776d
mov dword [esi + 0x35c], 0xd22724c7
jmp 0x46776d
mov dword [esi + 0x35c], 0x14e2fa4b
mov ecx, dword [esi + 0x348]
push edi
call fcn.0047c610
push edi
lea eax, [ebp - 0x468]
push str._sClientOption.dat
push eax
call fcn.0061660d
add esp, 0xc
lea ecx, [ebp - 0x468]
push ecx
mov ecx, dword [esi + 0x348]
call fcn.00479860
push 0x1c
call fcn.00614bf2
add esp, 4
mov dword [ebp - 0x578], eax
test eax, eax
mov dword [ebp - 4], 0
je 0x4677c4
mov ecx, eax
call fcn.00553f30
jmp 0x4677c6
xor eax, eax
push 0xf0
mov dword [ebp - 4], ebx
mov dword [0x6a0844], eax
call fcn.00614bf2
add esp, 4
mov dword [ebp - 0x578], eax
test eax, eax
mov dword [ebp - 4], 1
je 0x4677fc
mov edx, dword [0x6a0844]
push edx
mov ecx, eax
call fcn.00545e90
jmp 0x4677fe
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [0x6a0848], eax
call fcn.00576714
mov eax, dword [esi + 0x1bc]
mov dword [0xad9f78], eax
mov ecx, dword [esi + 0x1c0]
mov dword [0xad9f6c], ecx
mov edx, dword [esi + 0x1c4]
mov dword [0xad9f64], edx
mov eax, dword [esi + 0x370]
mov ecx, dword [esi + 0x36c]
mov edx, dword [esi + 4]
push eax
push ecx
push 0
push 0
push 0
push 1
push edx
lea ecx, [esi + 0x1f0]
call fcn.00573269
push 0x1d8
call fcn.00614bf2
add esp, 4
mov dword [ebp - 0x578], eax
test eax, eax
mov dword [ebp - 4], 2
je 0x46787a
mov ecx, eax
call fcn.00578780
jmp 0x46787c
xor eax, eax
mov ecx, dword [esi + 0x348]
mov dword [ecx], eax
mov edx, dword [0x9411e4]
push edi
sub esp, 0x44
lea eax, [esi + 0x1ac]
mov ecx, esp
mov dword [ebp - 0x578], esp
push eax
mov dword [ebp - 4], ebx
mov dword [0xb1a128], edx
mov dword [0xb1a124], 0x9411f0
mov dword [0xb20a8c], 0x9414e8
call fcn.004644c0
mov eax, dword [esi + 0x348]
mov ecx, dword [eax]
call fcn.0057d2a0
mov ecx, dword [0x9411e4]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, 0x69e7a8
call fcn.0042f530
mov eax, dword [0x69eaf4]
mov ecx, 0x69e7a8
mov dword [0x940f1c], eax
call fcn.0042f110
mov ecx, 0x6a081c
call fcn.004adbf0
mov ecx, dword [0x9411e4]
mov dword [esi + 0x384], ecx
mov eax, dword [0x6a084c]
mov ecx, dword [eax + 0x278]
mov edi, 2
cmp ecx, edi
je 0x467a5a
cmp ecx, 5
jne 0x467936
push str.SoftwareGamaSoftMP_Client_MY_
lea edx, [ebp - 0x260]
push edx
jmp 0x467942
push str.SoftwareGamaSoftMP_Client
lea eax, [ebp - 0x260]
push eax
call fcn.0061660d
add esp, 8
lea ecx, [ebp - 0x570]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x260]
push edx
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x467a5a
lea eax, [ebp - 0x574]
push eax
mov eax, dword [ebp - 0x570]
lea ecx, [ebp - 0x15c]
push ecx
lea edx, [ebp - 0x57c]
push edx
push 0
push str.UserID
push eax
mov dword [ebp - 0x574], 0x10
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
mov ecx, dword [esi + 0x348]
jne 0x467a03
mov dword [ecx + 0x1bc8], 1
mov eax, dword [esi + 0x34c]
lea edx, [ebp - 0x15c]
add eax, 0x220
lea ebx, [ebx]
mov cl, byte [edx]
inc edx
mov byte [eax], cl
inc eax
test cl, cl
jne 0x4679d0
mov eax, dword [esi + 0x34c]
xor edx, edx
add eax, 0x230
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
mov byte [eax + 0x20], dl
jmp 0x467a4d
mov dword [ecx + 0x1bc8], 0
mov eax, dword [esi + 0x34c]
xor edx, edx
add eax, 0x220
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov edx, dword [esi + 0x34c]
xor ecx, ecx
add edx, 0x230
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ecx
mov byte [edx + 0x20], cl
mov eax, dword [ebp - 0x570]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [0x65e9b0]
mov edx, dword [0x65e9b4]
mov eax, dword [0x65e9b8]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [0x65e9bc]
mov dword [ebp - 4], 3
mov dword [ebp - 0x48], 0x653b68
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0x5622
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], 0x14
mov dword [ebp - 0x18], 0xa
mov edx, dword [esi + 4]
mov byte [ebp - 4], 4
mov dword [ebp - 0x44], edx
call fcn.0058f890
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.0058f920
jmp 0x467b00
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x34c]
push eax
mov dword [ebp - 4], ebx
call fcn.004b5380
test eax, eax
je 0x467cf0
mov ecx, dword [esi + 0x34c]
call fcn.004b5dc0
mov ecx, dword [esi + 0x348]
call fcn.0047bda0
mov cl, byte [0x64f55f]
mov edx, dword [0x69f1ec]
xor eax, eax
mov dword [0x69f438], eax
mov byte [edx + 0x668], cl
mov cl, byte [0x64f55f]
mov edx, dword [0x69f1ec]
mov byte [edx + 0x76c], cl
mov cl, byte [0x64f55f]
mov edx, dword [0x69f1ec]
mov byte [edx + 0x870], cl
mov ecx, dword [esi + 0x348]
mov dword [ecx + 0x1bb8], eax
mov ecx, 0x681240
call fcn.004e6b20
mov ecx, 0x69f328
call fcn.00526f80
mov edx, dword [0x6a084c]
cmp dword [edx + 0x27c], edi
lea edi, [esi + 0xa8]
push edi
jne 0x467bb0
push str._sBGItemScript.gsf
lea eax, [ebp - 0x14c]
push eax
jmp 0x467bbc
push str._sItemScript.gsf
lea ecx, [ebp - 0x14c]
push ecx
call fcn.0061660d
mov ecx, dword [0x69e758]
add esp, 0xc
lea edx, [ebp - 0x14c]
push edx
call fcn.00547610
push edi
lea eax, [ebp - 0x14c]
push str._sChemical.gsf
push eax
call fcn.0061660d
add esp, 0xc
lea ecx, [ebp - 0x14c]
push ecx
mov ecx, dword [0x69e758]
call fcn.00547800
push edi
lea edx, [ebp - 0x14c]
push str._sSkillScript.gsf
push edx
call fcn.0061660d
mov ecx, dword [0x69e75c]
add esp, 0xc
lea eax, [ebp - 0x14c]
push eax
call fcn.00547170
push edi
lea ecx, [ebp - 0x14c]
push str._sMonsterProtoType.gsf
push ecx
call fcn.0061660d
mov ecx, dword [0x69e754]
add esp, 0xc
lea edx, [ebp - 0x14c]
push edx
call fcn.005466b0
push edi
lea eax, [ebp - 0x14c]
push str._sScript1.gsf
push eax
call fcn.0061660d
add esp, 0xc
lea ecx, [ebp - 0x14c]
push ecx
mov ecx, 0x8b4820
call fcn.004f0ee0
push edi
lea edx, [ebp - 0x14c]
push str._sNPCScript.mcf
push edx
call fcn.0061660d
push edi
lea eax, [ebp - 0x56c]
push str._sQuest.mcf
push eax
call fcn.0061660d
add esp, 0x18
lea ecx, [ebp - 0x56c]
push ecx
lea edx, [ebp - 0x14c]
push edx
mov ecx, 0x93e16c
call fcn.005533d0
mov cl, byte [0x64f55f]
mov eax, dword [esi + 0x348]
mov byte [eax + 0x54], cl
mov ecx, dword [esi + 0x348]
call fcn.00477290
mov eax, 1
jmp 0x467cf2
push ebx
push str.Program_Error
push str.Please_run__ClientSetup.exe_
jmp 0x467ce9
push ebx
push str.Program_Error
push str.Please_re_install_the_game.
push ebx
call dword [sym.imp.user32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.006162c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x68e698]
pushal
push str.Risk_Your_Life
push 1
push 0
call dword [sym.imp.kernel32.dll_CreateMutexA]
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x6162b7
popal
jmp 0x4671c3