Function at 0x40d3f0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x455831
mov eax, dword fs:[0]
push eax
sub esp, 0x9a4
mov eax, dword [0x470050]
xor eax, esp
mov dword [esp + 0x9a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x470050]
xor eax, esp
push eax
lea eax, [esp + 0x9b8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x9c8]
mov ebp, dword [esp + 0x9cc]
push eax
lea edi, [esp + 0x28]
mov esi, ecx
mov ebx, edx
call fcn.004048e0
push esi
lea edi, [esp + 0x48]
mov dword [esp + 0x9c8], 0
call fcn.004048e0
push ebp
lea edi, [esp + 0x68]
mov byte [esp + 0x9cc], 1
call fcn.004048e0
add esp, 0xc
mov byte [esp + 0x9c0], 2
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x40d488
lea eax, [esp + 0x28]
push 0x104
lea ecx, [esp + 0x198]
push ecx
push 0x104
lea edx, [esp + 0x5b0]
push edx
push 0x104
lea ecx, [esp + 0x3b0]
push ecx
push 0x104
lea edx, [esp + 0x7c8]
push edx
push eax
call fcn.0042d200
mov eax, dword [esp + 0x78]
add esp, 0x24
test eax, eax
jbe 0x40d52f
lea esi, [eax - 1]
cmp esi, eax
jbe 0x40d4d9
call fcn.0042c4d4
mov eax, dword [esp + 0x44]
mov edi, 8
cmp dword [esp + 0x58], edi
jae 0x40d4ec
lea eax, [esp + 0x44]
cmp word [eax + esi*2], 0x5c
je 0x40d534
mov eax, 0x5c
mov word [esp + 0x1c], ax
xor ecx, ecx
lea eax, [esp + 0x1c]
mov word [esp + 0x1e], cx
lea edx, [eax + 2]
jmp 0x40d510
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d510
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x44]
call fcn.004067a0
jmp 0x40d534
mov edi, 8
mov eax, dword [esp + 0x60]
mov byte [esp + 0x1b], 1
cmp dword [esp + 0x74], edi
jae 0x40d547
lea eax, [esp + 0x60]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 0
lea edx, [esp + 0x24]
push edx
push 0
push 2
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x40d5ad
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], edi
jae 0x40d57e
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x38]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [esp + 0x28]
push 1
push 0
push str.GDFBinary
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4726bc]
jmp 0x40d607
mov eax, dword [0x4726bc]
test eax, eax
je 0x40d602
mov edx, dword [esp + 0x60]
cmp dword [esp + 0x74], edi
jae 0x40d5c4
lea edx, [esp + 0x60]
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x3c], edi
jae 0x40d5d2
lea ecx, [esp + 0x28]
push edx
push ecx
push str.ERROR:_Failed_to_failed_to_save__s_to_registry_at_HKLM_sGDFBinary.
push eax
call fcn.00408010
mov eax, dword [0x4726bc]
add esp, 0x10
cmp byte [eax + 0xc70], 0
je 0x40d602
mov ecx, dword [eax + 0xe7c]
test ecx, ecx
je 0x40d602
push ecx
call esi
mov eax, dword [0x4726bc]
mov byte [esp + 0x1b], 0
test eax, eax
je 0x40d643
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x3c], edi
jae 0x40d619
lea ecx, [esp + 0x28]
push ecx
push str.Installing__s_...
push eax
call fcn.00408010
mov eax, dword [0x4726bc]
add esp, 0xc
cmp byte [eax + 0xc70], 0
je 0x40d643
mov eax, dword [eax + 0xe7c]
test eax, eax
je 0x40d643
push eax
call esi
test ebx, ebx
je 0x40d6d1
push ebx
lea edi, [esp + 0x7c]
call fcn.004048e0
mov edx, dword [esp + 0x80]
mov eax, 8
add esp, 4
cmp dword [esp + 0x90], eax
jae 0x40d671
lea edx, [esp + 0x7c]
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x58], eax
jae 0x40d67f
lea ecx, [esp + 0x44]
cmp dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
jae 0x40d68d
lea eax, [esp + 0x28]
push edx
push 3
push ecx
push eax
call fcn.0043f580
mov ebx, 8
mov esi, eax
cmp dword [esp + 0x90], ebx
jb 0x40d6b4
mov edx, dword [esp + 0x7c]
push edx
call fcn.0042c62b
add esp, 4
xor edi, edi
xor eax, eax
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], ax
jmp 0x40d6ff
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x58], edi
jae 0x40d6df
lea ecx, [esp + 0x44]
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], edi
jae 0x40d6ed
lea eax, [esp + 0x28]
push 0
push 3
push ecx
push eax
call fcn.0043f580
xor edi, edi
mov esi, eax
lea ebx, [edi + 8]
cmp esi, edi
jge 0x40d75f
mov edx, dword [0x4726bc]
cmp edx, edi
je 0x40d758
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x58], ebx
jae 0x40d71b
lea ecx, [esp + 0x44]
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], ebx
jae 0x40d729
lea eax, [esp + 0x28]
push ecx
push eax
push str.ERROR:_Failed_to_install__s_for_install_path__s
push edx
call fcn.00408010
mov eax, dword [0x4726bc]
add esp, 0x10
cmp byte [eax + 0xc70], 0
je 0x40d758
mov eax, dword [eax + 0xe7c]
cmp eax, edi
je 0x40d758
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor bl, bl
jmp 0x40d874
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], ebx
jae 0x40d76d
lea eax, [esp + 0x28]
lea ecx, [esp + 0x78]
push ecx
push eax
call fcn.00440570
add esp, 8
test eax, eax
jl 0x40d82a
push 0x100
lea edx, [esp + 0x98]
push edi
push edx
call fcn.0042e060
push 0x80
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x8c]
push ecx
call fcn.004403b0
add esp, 0x18
test eax, eax
jl 0x40d82a
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], ebx
jae 0x40d7c5
lea eax, [esp + 0x60]
push edi
lea edx, [esp + 0x20]
push edx
push edi
push 0xf003f
push edi
push edi
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x40d82a
lea eax, [esp + 0x94]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40d7f0
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x98]
push ecx
push 1
push edi
push str.GameExplorer
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x4726bc]
cmp ecx, edi
je 0x40d870
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], ebx
jae 0x40d842
lea eax, [esp + 0x28]
push eax
push str.Successfully_installed__s.
push ecx
call fcn.00408010
mov eax, dword [0x4726bc]
add esp, 0xc
cmp byte [eax + 0xc70], 0
je 0x40d870
mov eax, dword [eax + 0xe7c]
cmp eax, edi
je 0x40d870
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov bl, byte [esp + 0x1b]
mov esi, 8
cmp dword [esp + 0x74], esi
jb 0x40d88c
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0042c62b
add esp, 4
xor edx, edx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], edi
mov word [esp + 0x60], dx
cmp dword [esp + 0x58], esi
jb 0x40d8b2
mov eax, dword [esp + 0x44]
push eax
call fcn.0042c62b
add esp, 4
xor ecx, ecx
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], edi
mov word [esp + 0x44], cx
cmp dword [esp + 0x3c], esi
jb 0x40d8d8
mov edx, dword [esp + 0x28]
push edx
call fcn.0042c62b
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x9b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9a0]
xor ecx, esp
call fcn.0042c1e9
add esp, 0x9b0
ret