Function at 0x40d3b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46672c
mov eax, dword fs:[0]
push eax
sub esp, 0x998
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x990], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x9a8]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push ecx
push eax
call fcn.00435780
lea eax, [esp + 0x3c]
mov dword [esp + 0x9b8], 0
push esi
push eax
call fcn.00435780
lea eax, [esp + 0x5c]
mov byte [esp + 0x9c0], 1
push edi
push eax
call fcn.00435780
push 0x104
lea ecx, [esp + 0x198]
mov byte [esp + 0x9cc], 2
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
push ecx
cmovae eax, dword [esp + 0x3c]
lea ecx, [esp + 0x5ac]
push 0x104
push ecx
push 0x104
lea ecx, [esp + 0x3b0]
push ecx
push 0x104
lea ecx, [esp + 0x7c8]
push ecx
push eax
call fcn.0043b2ab
mov ecx, dword [esp + 0x80]
add esp, 0x3c
test ecx, ecx
je 0x40d4d1
cmp dword [esp + 0x48], 8
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x40d4d1
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x5c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d4b3
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.004117e0
cmp dword [esp + 0x60], 8
lea ecx, [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [esp + 0x4c]
cmovae eax, dword [esp + 0x4c]
mov bl, 1
push 0
push ecx
push 0
push 2
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40d5db
cmp dword [ebp + 0x10], 1
lea ecx, [esp + 0x1c]
mov eax, dword [esp + 0x2c]
jne 0x40d5aa
cmp dword [esp + 0x30], 8
cmovae ecx, dword [esp + 0x1c]
add eax, eax
push eax
push ecx
push 1
push 0
push 0x473ba0
push dword [esp + 0x28]
call edi
cmp dword [esp + 0x60], 8
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 0x102
push 0
push 0
lea eax, [esp + 0x64]
cmovae eax, dword [esp + 0x64]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40d5c7
cmp dword [esp + 0x30], 8
lea ecx, [esp + 0x1c]
mov eax, dword [esp + 0x2c]
cmovae ecx, dword [esp + 0x1c]
add eax, eax
push eax
push ecx
push 1
push 0
push 0x473bb8
push dword [esp + 0x24]
call edi
push dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [esp + 0x14]
call esi
mov edx, dword [0x493a80]
jmp 0x40d624
cmp dword [esp + 0x30], 8
cmovae ecx, dword [esp + 0x1c]
add eax, eax
push eax
push ecx
push 1
push 0
push 0x473bb8
push dword [esp + 0x28]
call edi
push dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
mov edx, dword [0x493a80]
jmp 0x40d624
mov edx, dword [0x493a80]
test edx, edx
je 0x40d622
cmp dword [esp + 0x60], 8
lea ecx, [esp + 0x4c]
lea eax, [esp + 0x1c]
cmovae ecx, dword [esp + 0x4c]
cmp dword [esp + 0x30], 8
push ecx
cmovae eax, dword [esp + 0x20]
push eax
push str.ERROR:_Failed_to_failed_to_save__s_to_registry_at_HKLM_sGDFBinary.
push edx
call fcn.00438440
mov ecx, dword [0x493a80]
add esp, 0x10
call fcn.00437480
mov edx, dword [0x493a80]
xor bl, bl
test edx, edx
je 0x40d656
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push str.Installing__s_...
push edx
call fcn.00438440
mov ecx, dword [0x493a80]
add esp, 0xc
call fcn.00437480
mov edx, dword [0x493a80]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d74b
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00435780
add esp, 8
mov byte [esp + 0x9b0], 3
mov esi, dword [0x493a80]
test esi, esi
je 0x40d6b0
cmp dword [esp + 0x78], 8
lea eax, [esp + 0x64]
cmovae eax, dword [esp + 0x64]
push eax
push str.Alternate_GDF_game_name__s
push esi
call fcn.00438440
mov ecx, dword [0x493a80]
add esp, 0xc
call fcn.00437480
mov esi, dword [0x493a80]
cmp dword [esp + 0x78], 8
lea edx, [esp + 0x64]
push esi
cmovae edx, dword [esp + 0x68]
lea ecx, [esp + 0x38]
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x20]
push edx
cmovae ecx, dword [esp + 0x3c]
cmp dword [esp + 0x38], 8
push 3
cmovae eax, dword [esp + 0x28]
push ecx
push eax
call fcn.00453e20
mov edx, dword [0x493a80]
mov esi, eax
test edx, edx
je 0x40d711
push esi
push str.GameExplorerInstall_returns__x
push edx
call fcn.00438440
mov ecx, dword [0x493a80]
add esp, 0xc
call fcn.00437480
mov edx, dword [0x493a80]
mov byte [esp + 0x9b0], 2
cmp dword [esp + 0x78], 8
jb 0x40d732
push dword [esp + 0x64]
call fcn.0043986c
mov edx, dword [0x493a80]
add esp, 4
xor eax, eax
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
jmp 0x40d79f
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x34]
push edx
cmovae ecx, dword [esp + 0x38]
lea eax, [esp + 0x20]
cmp dword [esp + 0x34], 8
push 0
cmovae eax, dword [esp + 0x24]
push 3
push ecx
push eax
call fcn.00453e20
mov edx, dword [0x493a80]
mov esi, eax
test edx, edx
je 0x40d79f
push esi
push str.GameExplorerInstall_returns__x
push edx
call fcn.00438440
mov ecx, dword [0x493a80]
add esp, 0xc
call fcn.00437480
mov edx, dword [0x493a80]
test esi, esi
jns 0x40d7e5
test edx, edx
je 0x40d7de
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x34]
lea eax, [esp + 0x1c]
cmovae ecx, dword [esp + 0x34]
cmp dword [esp + 0x30], 8
push ecx
cmovae eax, dword [esp + 0x20]
push eax
push str.ERROR:_Failed_to_install__s_for_install_path__s
push edx
call fcn.00438440
mov ecx, dword [0x493a80]
add esp, 0x10
call fcn.00437480
xor bl, bl
jmp 0x40d91a
cmp dword [esp + 0x30], 8
lea ecx, [esp + 0x64]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push ecx
push eax
call fcn.004536b0
add esp, 8
test eax, eax
js 0x40d8e8
push 0x100
lea eax, [esp + 0x80]
push 0
push eax
call fcn.0043a7a0
push 0x80
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00451b40
add esp, 0x18
test eax, eax
js 0x40d8e8
cmp dword [esp + 0x60], 8
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
lea eax, [esp + 0x64]
cmovae eax, dword [esp + 0x64]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d8e8
cmp dword [ebp + 0x10], 1
lea ecx, [esp + 0x7c]
lea edx, [ecx + 2]
jne 0x40d8b0
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d880
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [esp + 0x80]
push eax
push 1
push 0
push str.GameExplorer64
jmp 0x40d8d8
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d8b0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [esp + 0x80]
push eax
push 1
push 0
push str.GameExplorer
push dword [esp + 0x24]
call edi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x493a80]
test ecx, ecx
je 0x40d91a
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push str.Successfully_installed__s.
push ecx
call fcn.00438440
mov ecx, dword [0x493a80]
add esp, 0xc
call fcn.00437480
cmp dword [esp + 0x60], 8
jb 0x40d92d
push dword [esp + 0x4c]
call fcn.0043986c
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
cmp dword [esp + 0x48], 8
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
jb 0x40d957
push dword [esp + 0x34]
call fcn.0043986c
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
cmp dword [esp + 0x30], 8
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
jb 0x40d981
push dword [esp + 0x1c]
call fcn.0043986c
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x9a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x990]
xor ecx, esp
call fcn.00438f17
mov esp, ebp
pop ebp
ret