Function at 0x45858a
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x6bff8c
call fcn.00692bd4
sub esp, 0x5ec
mov eax, dword [0x721bb0]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x37c], ebx
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x57c], esi
jne 0x4585bf
call fcn.00455ce3
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.user32.dll_LoadCursorA]
mov dword [esi + 0x36c], ecx
mov ecx, dword [ebp + 0x10]
push 0x7f00
push ebx
mov dword [esi], eax
mov dword [esi + 0x370], ecx
mov dword [ebp - 0x5a8], 0xb
mov dword [ebp - 0x5a4], 0x4581b1
mov dword [ebp - 0x5a0], ebx
mov dword [ebp - 0x59c], 4
mov dword [ebp - 0x598], eax
mov dword [ebp - 0x594], ebx
call edi
push 0x68
push dword [ebp + 8]
mov dword [ebp - 0x590], eax
call edi
push 4
mov dword [ebp - 0x590], eax
call dword [sym.imp.gdi32.dll_GetStockObject]
mov dword [ebp - 0x58c], eax
lea eax, [ebp - 0x5a8]
jmp 0x6cf9c0
push eax
mov dword [ebp - 0x588], ebx
mov dword [ebp - 0x584], edi
call dword [sym.imp.user32.dll_RegisterClassA]
test ax, ax
je 0x459205
cmp dword [esi + 0x37c], ebx
mov ecx, dword [esi + 0x370]
mov eax, dword [esi + 0x36c]
je 0x45867d
add eax, 6
mov edx, 0x10ca0000
add ecx, 0x20
jmp 0x458682
mov edx, 0x90000000
push ebx
push dword [ebp + 8]
push ebx
push ebx
push ecx
push eax
push ebx
push ebx
push edx
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [esi + 4], eax
mov dword [0x1071018], eax
mov eax, dword [esi + 0x34c]
mov dword [ebp - 0x578], ebx
mov dword [ebp - 0x574], pe_nt_image_headers32
cmp dword [eax + 0x170], 5
lea eax, [ebp - 0x260]
jne 0x4586ca
push str.SoftwareGamaSoftNo_Limits_MY_
jmp 0x4586cf
push str.SoftwareGamaSoftNo_Limits
push eax
call fcn.006935d4
mov edi, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
pop ecx
pop ecx
lea eax, [ebp - 0x56c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x260]
push eax
push 0x80000002
call edi
test eax, eax
jne 0x4591f3
mov eax, dword [esi + 0x34c]
mov eax, dword [eax + 0x174]
sub eax, ebx
je 0x458750
dec eax
je 0x458733
dec eax
jne 0x45877f
lea eax, [ebp - 0x574]
push eax
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x578]
push eax
push ebx
push str.BGFolder
jmp 0x45876b
lea eax, [ebp - 0x574]
push eax
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x578]
push eax
push ebx
push str.Folder_P2_
jmp 0x45876b
lea eax, [ebp - 0x574]
push eax
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x578]
push eax
push ebx
push str.TestFolder
push dword [ebp - 0x56c]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4591d3
lea eax, [ebp - 0x56c]
lea ecx, [esi + 0x1ac]
push eax
call fcn.005c3030
test al, al
jne 0x4587a5
push ebx
push str.Program_Error
push 0x820168
jmp 0x4591de
lea eax, [ebp - 0x56c]
push eax
call fcn.005c4be0
test al, al
pop ecx
je 0x458795
push dword [ebp - 0x56c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esi + 0x34c]
cmp dword [eax + 0x170], ebx
jne 0x4587d5
call fcn.006917e0
push 0x32ee98
call fcn.006918d6
pop ecx
mov dword [ebp - 0x570], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x4587fc
mov ecx, eax
call fcn.0057b55f
mov dword [ebp - 0x570], eax
jmp 0x458802
mov dword [ebp - 0x570], ebx
mov ecx, dword [ebp - 0x570]
or dword [ebp - 4], 0xffffffff
call fcn.0057bb24
mov ecx, dword [ebp - 0x570]
call fcn.0057c622
mov ecx, dword [ebp - 0x570]
call fcn.0057ba6a
mov ecx, dword [ebp - 0x570]
call fcn.0057c4c1
test eax, eax
jne 0x45892d
xor al, al
cmp dword [0x71fb2c], ebx
jne 0x458885
cmp dword [0x71fb24], ebx
jne 0x458885
cmp dword [0x71fb34], 1
jne 0x458885
cmp dword [0x71fb38], ebx
jne 0x458885
cmp dword [0x71fb14], ebx
jne 0x458885
cmp dword [0x1209e58], ebx
jne 0x458885
cmp dword [0x1209e3c], ebx
jne 0x458885
cmp dword [0x1209e6c], ebx
jne 0x458885
cmp dword [0x1209e68], ebx
je 0x458887
mov al, 1
cmp al, bl
mov dword [0x71fb2c], ebx
mov dword [0x71fb24], ebx
mov dword [0x71fb34], 1
mov dword [0x71fb38], ebx
mov dword [0x71fb14], ebx
mov dword [0x1209e58], ebx
mov dword [0x1209e3c], ebx
mov dword [0x1209e6c], ebx
mov dword [0x1209e68], ebx
je 0x45892d
lea eax, [ebp - 0x56c]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x260]
push eax
push 0x80000002
call edi
test eax, eax
jne 0x458917
lea eax, [ebp - 0x56c]
push eax
call fcn.005c4ac0
test al, al
mov edi, dword [sym.imp.user32.dll_MessageBoxA]
pop ecx
jne 0x458909
push ebx
push str.RYL2_NOLIMITS
push str.Not_Render_Option_Save
push ebx
call edi
push dword [ebp - 0x56c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x45891d
mov edi, dword [sym.imp.user32.dll_MessageBoxA]
push ebx
push str.RYL2_NOLIMITS
push 0xaf4568
push ebx
call edi
jmp 0x458933
mov edi, dword [sym.imp.user32.dll_MessageBoxA]
cmp dword [ebp - 0x570], ebx
je 0x458952
mov ecx, dword [ebp - 0x570]
call fcn.0057b599
push dword [ebp - 0x570]
call fcn.00692701
pop ecx
push dword [esi + 4]
mov ecx, dword [esi + 0x34c]
call fcn.00460b78
test eax, eax
je 0x459205
call dword [sym.imp.winmm.dll_timeGetTime]
mov dword [0x73a4a8], eax
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x118]
push str._sVersionInfo.dat
push eax
call fcn.006935d4
lea eax, [ebp - 0x118]
push 0x6d5dbc
push eax
call fcn.00694dfa
lea ecx, [ebp - 0x580]
push ecx
push 0x6d502c
push eax
mov dword [ebp - 0x570], eax
call fcn.00694ec6
push dword [ebp - 0x570]
call fcn.00694b22
mov eax, dword [ebp - 0x580]
mov dword [esi + 0x360], eax
mov eax, dword [esi + 0x348]
add esp, 0x24
cmp dword [eax + 0x2224], ebx
jne 0x4589e7
push ebx
mov ecx, 0x1071008
call fcn.00455316
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x118]
push str._sClient.exe
push eax
call fcn.006935d4
lea eax, [ebp - 0x5f8]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0057d953
add esp, 0x14
test eax, eax
jne 0x458c7b
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x118]
push str._sNPCScript.mcf
push eax
call fcn.006935d4
lea eax, [ebp - 0x5f4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0057d953
add esp, 0x14
test eax, eax
jne 0x458c7b
mov eax, dword [esi + 0x34c]
cmp dword [eax + 0x174], 2
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x118]
jne 0x458a76
push str._sBGItemScript.gsf
jmp 0x458a7b
push str._sItemScript.gsf
push eax
call fcn.006935d4
add esp, 0xc
lea eax, [ebp - 0x5f0]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0057d953
test eax, eax
pop ecx
pop ecx
jne 0x458c7b
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x118]
push str._sSkillScript.gsf
push eax
call fcn.006935d4
lea eax, [ebp - 0x5ec]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0057d953
add esp, 0x14
test eax, eax
jne 0x458c7b
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x118]
push str._sMonsterProtoType.gsf
push eax
call fcn.006935d4
lea eax, [ebp - 0x5e8]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0057d953
add esp, 0x14
test eax, eax
jne 0x458c7b
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x118]
push str._sCharacterDataChrEvent.eds
push eax
call fcn.006935d4
lea eax, [ebp - 0x5e4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0057d953
add esp, 0x14
test eax, eax
jne 0x458c7b
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x118]
push str._sScript1.gsf
push eax
call fcn.006935d4
lea eax, [ebp - 0x5e0]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0057d953
add esp, 0x14
test eax, eax
jne 0x458c7b
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x118]
push str._sQuest.mcf
push eax
call fcn.006935d4
lea eax, [ebp - 0x5dc]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0057d953
add esp, 0x14
test eax, eax
jne 0x458c7b
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x118]
push str._sChemical.gsf
push eax
call fcn.006935d4
lea eax, [ebp - 0x5d8]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0057d953
add esp, 0x14
test eax, eax
jne 0x458c7b
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x118]
push str._sSpeacialCompensation.gsf
push eax
call fcn.006935d4
lea eax, [ebp - 0x5d4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0057d953
add esp, 0x14
test eax, eax
jne 0x458c7b
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x118]
push str._sMineralVein8.gsf
push eax
call fcn.006935d4
lea eax, [ebp - 0x5d0]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0057d953
add esp, 0x14
test eax, eax
jne 0x458c7b
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x118]
push str._sMineralVein12.gsf
push eax
call fcn.006935d4
lea eax, [ebp - 0x5cc]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0057d953
add esp, 0x14
test eax, eax
je 0x458c8e
push ebx
push 0x743568
push 0x743968
push ebx
call edi
jmp 0x459205
mov eax, dword [ebp - 0x5cc]
xor eax, dword [ebp - 0x5d0]
xor eax, dword [ebp - 0x5d4]
xor eax, dword [ebp - 0x5d8]
xor eax, dword [ebp - 0x5dc]
xor eax, dword [ebp - 0x5e0]
xor eax, dword [ebp - 0x5e4]
xor eax, dword [ebp - 0x5e8]
xor eax, dword [ebp - 0x5ec]
xor eax, dword [ebp - 0x5f0]
xor eax, dword [ebp - 0x5f4]
xor eax, dword [ebp - 0x5f8]
cmp word [esi + 0x366], 5
mov dword [esi + 0x35c], eax
jne 0x458d1e
mov eax, dword [esi + 0x34c]
mov eax, dword [eax + 0x174]
sub eax, ebx
je 0x458d14
dec eax
je 0x458d08
dec eax
jne 0x458d1e
mov dword [esi + 0x35c], 1
jmp 0x458d1e
mov dword [esi + 0x35c], 0x820599c1
jmp 0x458d1e
mov dword [esi + 0x35c], 0xfd940195
mov ecx, dword [esi + 0x348]
lea edi, [esi + 0xa8]
push edi
call fcn.0045f4c8
push edi
lea eax, [ebp - 0x364]
push str._sClientOption.dat
push eax
call fcn.006935d4
mov ecx, dword [esi + 0x348]
add esp, 0xc
lea eax, [ebp - 0x364]
push eax
call fcn.0045c58f
call fcn.00563d69
mov dword [0x73c24c], eax
call fcn.005c332f
mov eax, dword [esi + 0x1bc]
mov dword [0x1209af0], eax
mov eax, dword [esi + 0x1c0]
mov dword [0x1209ae4], eax
mov eax, dword [esi + 0x1c4]
mov dword [0x1209adc], eax
push dword [esi + 0x370]
lea ecx, [esi + 0x1f0]
push dword [esi + 0x36c]
push ebx
push ebx
push ebx
push 1
push dword [esi + 4]
call fcn.005c0d91
push 0x1bc
call fcn.006918d6
pop ecx
mov dword [ebp - 0x570], eax
cmp eax, ebx
mov dword [ebp - 4], 1
je 0x458dcb
mov ecx, eax
call fcn.0059c8a0
jmp 0x458dcd
xor eax, eax
mov ecx, dword [esi + 0x348]
or dword [ebp - 4], 0xffffffff
mov dword [ecx], eax
mov eax, dword [0x1070af4]
push edi
sub esp, 0x44
mov dword [0x106a558], eax
lea eax, [esi + 0x1ac]
mov ecx, esp
mov dword [ebp - 0x570], esp
push eax
mov dword [0x106a554], 0x1070b00
mov dword [0x106fc4c], 0x1070df8
call fcn.0045a1ca
mov eax, dword [esi + 0x348]
mov ecx, dword [eax]
call fcn.005a1e30
push dword [0x1070af4]
mov edi, 0x732178
push dword [esi + 4]
mov ecx, edi
call fcn.00446dd0
mov eax, dword [0x7324c4]
mov ecx, edi
mov dword [0x107101c], eax
call fcn.00446b40
mov ecx, 0x7320bc
call fcn.004328cd
mov eax, dword [0x1070af4]
mov dword [esi + 0x388], eax
mov eax, dword [esi + 0x34c]
cmp dword [eax + 0x170], 5
lea eax, [ebp - 0x260]
jne 0x458e73
push str.SoftwareGamaSoftNo_Limits_MY_
jmp 0x458e78
push str.SoftwareGamaSoftNo_Limits
push eax
call fcn.006935d4
pop ecx
pop ecx
lea eax, [ebp - 0x56c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x260]
push eax
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x458f41
lea eax, [ebp - 0x574]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x578]
push eax
push ebx
push str.UserID
push dword [ebp - 0x56c]
mov dword [ebp - 0x574], 0x10
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [esi + 0x348]
jne 0x458f09
mov dword [eax + 0x24d0], 1
mov eax, dword [esi + 0x34c]
lea edx, [ebp - 0x128]
add eax, 0x11c
mov cl, byte [edx]
inc edx
mov byte [eax], cl
inc eax
cmp cl, bl
jne 0x458efd
jmp 0x458f21
mov dword [eax + 0x24d0], ebx
mov edi, dword [esi + 0x34c]
xor eax, eax
add edi, 0x11c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [esi + 0x34c]
push 8
add edi, 0x12c
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push dword [ebp - 0x56c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea ecx, [ebp - 0x15c]
mov dword [ebp - 4], 2
mov dword [ebp - 0x15c], 0x6d5698
call fcn.004553c9
mov eax, dword [esi + 4]
mov byte [ebp - 4], 3
mov dword [ebp - 0x158], eax
call fcn.005b51f0
lea ecx, [ebp - 0x15c]
push ecx
mov ecx, eax
call fcn.005b5280
jmp 0x458fa8
mov ecx, dword [esi + 0x34c]
or dword [ebp - 4], 0xffffffff
call fcn.00460f6d
mov ecx, dword [esi + 0x348]
call fcn.0045ead3
mov dword [0x73adc8], ebx
xor eax, eax
mov cl, byte [0x6d05b8]
mov edx, dword [0x73abac]
mov byte [edx + eax + 0x664], cl
add eax, 0x104
cmp eax, 0x30c
jl 0x458fca
mov eax, dword [esi + 0x348]
mov ecx, 0x715898
mov dword [eax + 0x24c8], ebx
call fcn.0052a92e
mov ecx, 0x73acd8
call fcn.006530b9
mov ecx, dword [0x731e84]
call fcn.0057d473
mov eax, dword [esi + 0x34c]
cmp dword [eax + 0x174], 2
lea edi, [esi + 0xa8]
push edi
lea eax, [ebp - 0x118]
jne 0x459037
push str._sBGItemScript.gsf
jmp 0x45903c
push str._sItemScript.gsf
push eax
call fcn.006935d4
add esp, 0xc
mov dword [ebp - 4], 5
call fcn.00568f60
lea ecx, [ebp - 0x118]
push ecx
mov ecx, eax
call fcn.005679e0
push edi
lea eax, [ebp - 0x118]
push str._sChemical.gsf
push eax
call fcn.006935d4
add esp, 0xc
call fcn.00568f60
lea ecx, [ebp - 0x118]
push ecx
mov ecx, eax
call fcn.00567be0
push edi
lea eax, [ebp - 0x118]
push str._sSpeacialCompensation.gsf
push eax
call fcn.006935d4
add esp, 0xc
call fcn.00568f60
lea ecx, [ebp - 0x118]
push ecx
mov ecx, eax
call fcn.00568920
push edi
lea eax, [ebp - 0x118]
push str._sSkillScript.gsf
push eax
call fcn.006935d4
mov ecx, dword [0x731ea8]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call fcn.0056ca80
push edi
lea eax, [ebp - 0x118]
push str._sMonsterProtoType.gsf
push eax
call fcn.006935d4
mov ecx, dword [0x731e60]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call fcn.00565820
push edi
lea eax, [ebp - 0x118]
push str._sScript1.gsf
push eax
call fcn.006935d4
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov ecx, 0x732638
call fcn.00452340
push edi
lea eax, [ebp - 0x568]
push str._sQuest.mcf
push eax
call fcn.006935d4
add esp, 0xc
lea eax, [ebp - 0x568]
push eax
mov ecx, 0xf6735c
call fcn.00576d57
jmp 0x4591af
mov cl, byte [0x6d05b8]
or dword [ebp - 4], 0xffffffff
add esi, 0x348
mov eax, dword [esi]
mov byte [eax + 0xa4], cl
mov ecx, dword [esi]
call fcn.0045a71e
xor eax, eax
inc eax
jmp 0x459207
push ebx
push str.Program_Error
push str.Please_re_install_the_game.
push ebx
call dword [sym.imp.user32.dll_MessageBoxA]
push dword [ebp - 0x56c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x459205
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.00692fc7
pop edi
pop esi
pop ebx
leave
ret 0xc
mov edi, str.RYL2_NOLIMITS
pushal
push 0x6cf7f4
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
popal
jmp 0x458640