Function at 0x4e7aa0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x59ddec
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
mov ecx, str.gameboxused
xor edi, edi
mov dword [esp + 0x18], ebx
call fcn.00481430
lea esi, [esp + 0x1c]
mov dword [esp + 0xd0], edi
call fcn.004b6300
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
mov esi, eax
push edx
mov dword [esp + 0x20], edi
call fcn.00479280
test eax, eax
je 0x4e7b12
cmp dword [esi], 2
jne 0x4e7b16
xor esi, esi
jmp 0x4e7b1a
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x4e7b2d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e7b4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xd0], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e7b78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jne 0x4e7d54
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.gameboxused
call fcn.00481430
lea esi, [esp + 0x1c]
mov dword [esp + 0xd0], 1
call fcn.004b6300
mov esi, eax
cmp esi, edi
je 0x4e7bb6
mov eax, dword [esi + 0x10]
cmp eax, edi
jne 0x4e7bbe
mov dword [esi], 0xd
jmp 0x4e7bda
mov ecx, dword [esp + 0x14]
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push edi
push ecx
push eax
mov dword [esp + 0x30], 1
call ebp
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x4e7bed
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4e7c0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xd0], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e7c38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.opentime
call fcn.00481430
lea esi, [esp + 0x1c]
mov dword [esp + 0xd0], 2
call fcn.004b6300
push edi
mov esi, eax
call fcn.00564426
add esp, 4
cmp esi, edi
je 0x4e7c71
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x4e7c79
mov dword [esi], 0xd
jmp 0x4e7c91
push 4
lea edx, [esp + 0x1c]
push edx
push 4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
push edi
push eax
push ecx
call ebp
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x4e7ca4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e7cc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xd0], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e7cef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0047f920
cmp eax, edi
mov esi, 3
mov dword [esp + 0xd0], esi
je 0x4e7d41
cmp dword [eax + 0x24], 1
jg 0x4e7d41
push 1
push str.KMainDlg::_InfocRun
push 0x66
push str..kmaindlg.cpp
lea ecx, [esp + 0x58]
push ecx
call fcn.0047f220
push 0x5b8e10
mov byte [esp + 0xd4], 4
mov ebx, 1
push eax
mov dword [esp + 0x1c], ebx
call fcn.0047f6e0
add esp, 8
test bl, 1
mov dword [esp + 0xd0], esi
je 0x4e7dbe
lea edx, [esp + 0x48]
push edx
jmp 0x4e7db9
call fcn.0047f920
cmp eax, edi
mov esi, 5
mov dword [esp + 0xd0], esi
je 0x4e7da8
mov eax, dword [eax + 0x24]
cmp eax, 1
jg 0x4e7da8
push 1
push str.KMainDlg::_InfocRun
push 0x6b
push str..kmaindlg.cpp
lea eax, [esp + 0x58]
push eax
call fcn.0047f220
push 0x5b8e68
mov byte [esp + 0xd4], 6
mov ebx, 2
push eax
mov dword [esp + 0x1c], ebx
call fcn.0047f6e0
add esp, 8
test bl, 2
mov dword [esp + 0xd0], esi
je 0x4e7dbe
lea ecx, [esp + 0x48]
push ecx
call fcn.0047eb40
mov dword [esp + 0xd0], 0xffffffff
mov eax, dword [0x5f9180]
cmp eax, edi
je 0x4e7dd9
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea edx, [esp + 0x18]
push edx
mov ecx, str.lastopentime
call fcn.00481430
lea esi, [esp + 0x34]
mov dword [esp + 0xd0], 7
call fcn.004b6300
push edi
mov esi, eax
call fcn.00564426
add esp, 4
cmp esi, edi
je 0x4e7e12
mov ecx, dword [esi + 0x10]
cmp ecx, edi
jne 0x4e7e1a
mov dword [esi], 0xd
jmp 0x4e7e32
mov edx, dword [esp + 0x18]
push 4
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
push 4
push edi
push edx
push ecx
call ebp
mov dword [esi], eax
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x4e7e45
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e7e65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xd0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e7e90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0046b3e0
mov ecx, eax
call fcn.0044eb00
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret