Function at 0x401034
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov eax, 0x40a240
call fcn.004031e4
sub esp, 0x684
mov al, byte [ebp + 0x17]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call fcn.004014b5
mov esi, str.GlbGPlayerWndClass
push esi
call fcn.00402d90
pop ecx
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.004014f1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00401000
or dword [ebp - 4], 0xffffffff
push 1
pop edi
lea ecx, [ebp - 0x20]
push edi
mov esi, eax
call fcn.004014b5
push ebx
push esi
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x10], esi
je 0x401170
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401170
mov eax, dword [ebp + 0x18]
mov byte [ebp - 0x690], bl
cmp eax, ebx
je 0x4010e4
cmp byte [eax], bl
je 0x4010e4
push eax
lea eax, [ebp - 0x690]
push dword [ebp + 0x14]
push 0x40b394
push 0x410
push eax
call fcn.00403268
add esp, 0x14
jmp 0x401103
cmp dword [ebp + 0x14], ebx
je 0x401103
mov eax, dword [ebp + 0x14]
cmp byte [eax], bl
je 0x401103
push 0x410
push eax
lea eax, [ebp - 0x690]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x690]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x690]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x4a
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
call esi
neg eax
sbb al, al
inc al
mov byte [ebp + 0xf], al
jne 0x401170
mov edi, dword [ebp - 0x10]
movzx eax, di
push eax
push 0xf150
push 0x112
push edi
call esi
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x401164
push edi
call dword [sym.imp.USER32.dll_OpenIcon]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40142c
mov dword [ebp - 0x10], ebx
mov al, byte [ebp + 0x17]
push ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
mov byte [ebp - 0x20], al
call fcn.004014b5
mov esi, str.GlbCfgPath
push esi
call fcn.00402d90
pop ecx
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.004014f1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.00401000
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
call fcn.004014b5
lea eax, [ebp + 0xf]
mov esi, 0x80000002
push eax
push esi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
mov byte [ebp + 0xf], bl
call fcn.00401458
test al, al
mov edi, 0x104
je 0x40120b
mov eax, dword [str.GPlayerExe]
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x280]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x10]
mov dword [ebp + 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb al, al
inc al
mov byte [ebp + 0xf], al
mov byte [ebp + 0xf], 1
jne 0x40120e
mov byte [ebp + 0xf], bl
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], ebx
je 0x401220
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp + 0xf], bl
jne 0x4012f5
mov dword [ebp + 0x10], ebx
mov eax, dword [str.SOFTWAREMicrosoftWindowsCurrentVersion]
lea ecx, [ebp + 0x17]
push ecx
push esi
push eax
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 3
mov byte [ebp + 0x17], bl
call fcn.00401458
test al, al
je 0x4012de
mov eax, dword [str.ProgramFilesDir]
lea ecx, [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x17c]
push ecx
push ebx
push ebx
push eax
push dword [ebp + 0x10]
mov dword [ebp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb al, al
inc al
mov byte [ebp + 0x17], al
je 0x4012de
mov al, byte [ebp + 0x17]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call fcn.004014b5
mov esi, str.GlbGPlayerLocation
push esi
call fcn.00402d90
pop ecx
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.004014f1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push ebx
push eax
mov byte [ebp - 4], 4
call fcn.00401000
push 1
lea ecx, [ebp - 0x20]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.004014b5
lea eax, [ebp - 0x17c]
push esi
push eax
push 0x40b36c
lea eax, [ebp - 0x280]
push edi
push eax
call fcn.00403268
add esp, 0x14
cmp dword [ebp + 0x10], ebx
je 0x40142c
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40142c
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x401329
cmp byte [eax], bl
je 0x401329
push eax
lea eax, [ebp - 0x280]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push str.__s____s____s____s_
lea eax, [ebp - 0x690]
push 0x410
push eax
call fcn.00403268
add esp, 0x1c
jmp 0x40137d
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x40135a
cmp byte [eax], bl
je 0x40135a
push eax
lea eax, [ebp - 0x280]
push dword [ebp + 0x10]
push eax
push str.__s____s____s_
lea eax, [ebp - 0x690]
push 0x410
push eax
call fcn.00403268
add esp, 0x18
jmp 0x40137d
push dword [ebp + 0x10]
lea eax, [ebp - 0x280]
push eax
push str.__s____s_
lea eax, [ebp - 0x690]
push 0x410
push eax
call fcn.00403268
add esp, 0x14
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x17d]
lea ecx, [ebp - 0x17c]
cmp ecx, eax
ja 0x4013c1
mov cl, byte [eax]
cmp cl, 0x5c
je 0x4013be
cmp cl, 0x2f
je 0x4013be
dec eax
jmp 0x4013a5
mov byte [eax + 1], bl
push 0x44
lea eax, [ebp - 0x78]
pop esi
push esi
push ebx
push eax
call fcn.00403210
push 0x10
lea eax, [ebp - 0x34]
push ebx
push eax
mov dword [ebp - 0x78], esi
call fcn.00403210
add esp, 0x18
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x17c]
push eax
push ebx
push 0x4000020
push ebx
push ebx
lea eax, [ebp - 0x690]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40142c
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp + 0xf], bl
call esi
push 0x3e8
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x34]
call esi
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp byte [ebp + 0xf], bl
pop edi
pop esi
pop ebx
sete al
mov dword fs:[0], ecx
leave
ret