Function at 0x4010db
Capabilities:
Hide graphical window
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
push ebx
push esi
mov ebx, dword [0x4339ac]
push edi
mov esi, 0x4263b0
lea edi, [ebp - 0x3c]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push edi
add ebx, 0x554
push edi
lea eax, [ebx + 0x24c]
push eax
push 0x80000002
mov word [ebp - 0x20], 0x58
mov word [ebp - 0x10], 0x59
mov word [ebp - 0x18], 0x57
mov word [ebp - 0x14], 0x48
mov word [ebp - 0x1c], 0x53
xor esi, esi
mov dword [ebp - 0x68], 0x2c
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4013b0
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
sub edx, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x40]
sub eax, ecx
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x240]
push 4
mov dword [ebp - 0x34], eax
pop esi
jne 0x4011fb
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
lea eax, [ebp - 0x28]
push eax
push esi
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call ebx
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call ebx
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
push edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call ebx
push esi
lea eax, [ebp - 0x24]
push eax
push esi
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call ebx
push esi
lea eax, [ebp - 0x38]
push eax
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call ebx
push esi
lea eax, [ebp - 0x34]
push eax
push esi
push edi
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 4]
call ebx
jmp 0x4013a4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
call edi
test eax, eax
je 0x40122a
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
call edi
test eax, eax
je 0x40125d
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
call edi
test eax, eax
je 0x401290
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
call edi
test eax, eax
je 0x4012c3
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
call edi
test eax, eax
je 0x4012f8
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x16c], eax
jmp 0x4012fe
mov eax, dword [ebp - 0x16c]
push 0
push eax
mov dword [ebp - 0x34], eax
push 0x14e
push dword [ebx + 0x238]
mov dword [ebx + 0x240], eax
mov dword [ebx + 0x244], 1
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push dword [ebx + 0x240]
push 0x150
push dword [ebx + 0x238]
call dword [sym.imp.USER32.dll_SendMessageA]
and dword [ebx + 0x244], 0
mov dword [ebx + 0x248], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
call edi
test eax, eax
je 0x401376
mov dword [ebp - 0x16c], 5
mov eax, dword [ebp - 0x16c]
push 0x14
push dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x28]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp - 0x38]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
xor esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8