Function at 0x40e1d0
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43a1c9
mov eax, dword fs:[0]
push eax
sub esp, 0x60c
mov eax, dword [0x44252c]
xor eax, esp
mov dword [esp + 0x608], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44252c]
xor eax, esp
push eax
lea eax, [esp + 0x620]
mov dword fs:[0], eax
mov eax, dword [esp + 0x630]
mov esi, dword [esp + 0x634]
xor ebx, ebx
mov ecx, 8
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push 0x80000002
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x84], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40e2e3
push 0x2a
push str.Cant_open_create_old_keys_in_the_registry
lea ecx, [esp + 0x108]
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
call fcn.00404fc0
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x98]
mov dword [esp + 0x62c], ebx
call fcn.00405cf0
push 0x43f120
lea ecx, [esp + 0x98]
push ecx
call fcn.004109bf
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x24]
push edx
push 0xf003f
push ebx
push esi
push 0x80000002
call ebp
test eax, eax
je 0x40e35d
push 0x23
push str.Cant_open_new_keys_in_the_registry
lea ecx, [esp + 0x108]
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
call fcn.00404fc0
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x98]
mov dword [esp + 0x62c], 1
call fcn.00405cf0
push 0x43f120
lea ecx, [esp + 0x98]
push ecx
call fcn.004109bf
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x4c]
push ecx
push ebx
push str.Time
push edx
call esi
test eax, eax
je 0x40e38b
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x4c]
push edx
push ebx
push str.Time
push eax
call esi
test eax, eax
je 0x40e3b3
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov eax, 0x100
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x320]
push edx
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x30]
push ebx
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x230]
push edx
push ebx
push eax
xor esi, esi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x70], ebx
call edi
cmp eax, ebx
jne 0x40e4a2
jmp 0x40e410
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x520]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x58]
push eax
push ebx
lea ecx, [esp + 0x22c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40e460
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x320]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0x22c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, 0x100
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x320]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x30]
push ebx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x230]
push eax
inc esi
push esi
push ecx
call edi
cmp eax, ebx
je 0x40e410
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edx
push 0xf003f
push ebx
push str.GameConfigs
push eax
call ebp
test eax, eax
jne 0x40e95c
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.GameConfigs
push eax
mov dword [esp + 0x44], ebx
call esi
test eax, eax
je 0x40e530
push str.Cant_open_create_old_keys_in_the_registry
lea ecx, [esp + 0x104]
call fcn.00405f40
lea ecx, [esp + 0x100]
push ecx
lea ecx, [esp + 0x98]
mov dword [esp + 0x62c], 2
call fcn.00405cf0
push 0x43f120
lea edx, [esp + 0x98]
push edx
call fcn.004109bf
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.GameConfigs.bak
push edx
mov dword [esp + 0x44], ebx
call esi
test eax, eax
je 0x40e599
push str.Cant_open_create_old_keys_in_the_registry
lea ecx, [esp + 0x104]
call fcn.00405f40
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x98]
mov dword [esp + 0x62c], 3
call fcn.00405cf0
push 0x43f120
lea ecx, [esp + 0x98]
push ecx
call fcn.004109bf
mov ecx, dword [esp + 0x2c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x130]
push eax
push ebx
push ecx
xor esi, esi
call edi
test eax, eax
jne 0x40e609
mov edi, edi
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x11c]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
call fcn.0040d420
add dword [esp + 0x70], eax
mov edx, dword [esp + 0x3c]
add esp, 0x10
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x130]
push ecx
inc esi
push esi
push edx
mov dword [esp + 0x48], 0x100
call edi
test eax, eax
je 0x40e5c0
lea ecx, [esp + 0x7c]
call fcn.0040dad0
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebx
push edx
mov dword [esp + 0x648], 4
xor esi, esi
call edi
test eax, eax
jne 0x40e755
mov ebp, 0xf
jmp 0x40e650
lea eax, [esp + 0x11c]
mov dword [esp + 0x118], ebp
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e670
sub eax, edx
push eax
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x108]
call fcn.00404fc0
lea eax, [esp + 0x11c]
mov byte [esp + 0x628], 5
mov dword [esp + 0xd4], ebp
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e6b5
sub eax, edx
push eax
lea ecx, [esp + 0x120]
push ecx
lea ecx, [esp + 0xc4]
call fcn.00404fc0
lea edx, [esp + 0xbc]
push edx
lea ecx, [esp + 0x80]
mov byte [esp + 0x62c], 6
call fcn.0040e120
cmp dword [esp + 0xd4], 0x10
jb 0x40e709
mov eax, dword [esp + 0xc0]
push eax
call fcn.00410405
add esp, 4
inc esi
cmp dword [esp + 0x118], 0x10
mov dword [esp + 0x28], 0x100
mov byte [esp + 0x628], 4
jb 0x40e734
mov ecx, dword [esp + 0x104]
push ecx
call fcn.00410405
add esp, 4
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x130]
push eax
push esi
push ecx
call edi
test eax, eax
je 0x40e650
mov ecx, dword [esp + 0x8c]
sub ecx, dword [esp + 0x88]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
je 0x40e8e5
push esi
lea ecx, [esp + 0x80]
mov dword [esp + 0x50], 0x100
mov byte [esp + 0x1f], bl
call fcn.0040cd30
mov ebp, 0x10
cmp dword [eax + 0x18], ebp
jb 0x40e7a6
mov eax, dword [eax + 4]
jmp 0x40e7a9
add eax, 4
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40ea05
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x420]
push edx
lea eax, [esp + 0x60]
push eax
push ebx
push str.Time
push ecx
call edi
test eax, eax
je 0x40e874
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x420]
push eax
lea ecx, [esp + 0x60]
push ecx
push ebx
push str.__Updated
push edx
call edi
test eax, eax
jne 0x40e86f
mov eax, dword [esp + 0x34]
push str.__Updated
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x40e874
push str.Cant_update_value..
lea ecx, [esp + 0x104]
call fcn.00405f40
lea ecx, [esp + 0x100]
push ecx
lea ecx, [esp + 0x98]
mov byte [esp + 0x62c], 7
call fcn.00405cf0
push 0x43f120
lea edx, [esp + 0x98]
push edx
call fcn.004109bf
mov byte [esp + 0x1b], 1
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40e986
cmp byte [esp + 0x1b], bl
je 0x40e8bb
push esi
lea ecx, [esp + 0x80]
call fcn.0040cd30
cmp dword [eax + 0x18], ebp
jb 0x40e8a4
mov eax, dword [eax + 4]
jmp 0x40e8a7
add eax, 4
mov edx, dword [esp + 0x1c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40e9c6
mov ecx, dword [esp + 0x8c]
sub ecx, dword [esp + 0x88]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
cmp esi, eax
jb 0x40e77e
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov edx, dword [esp + 0x2c]
push edx
call esi
cmp dword [esp + 0x60], ebx
jne 0x40e916
mov eax, dword [esp + 0x14]
push str.GameConfigs.bak
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x74]
push ecx
call fcn.0041277d
mov eax, dword [esp + 0x18]
add esp, 4
push 4
lea edx, [esp + 0x78]
push edx
push 4
push ebx
push str.Time
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40e948
push eax
call esi
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40e953
push eax
call esi
lea ecx, [esp + 0x7c]
call fcn.0040dd00
xor eax, eax
mov ecx, dword [esp + 0x620]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x608]
xor ecx, esp
call fcn.00410f49
add esp, 0x618
ret
int3
push str.Cant_delete_game_key.
lea ecx, [esp + 0x104]
call fcn.00405f40
lea edx, [esp + 0x100]
push edx
lea ecx, [esp + 0x98]
mov byte [esp + 0x62c], 9
call fcn.00405cf0
push 0x43f120
lea eax, [esp + 0x98]
push eax
call fcn.004109bf
push str.Cant_open_game_key.
lea ecx, [esp + 0xc0]
call fcn.00405f40
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0xdc]
mov byte [esp + 0x62c], 0xa
call fcn.00405cf0
push 0x43f120
lea edx, [esp + 0xdc]
push edx
call fcn.004109bf
int3