Function at 0x412010
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0e48
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5321d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [ebp + 0x1c], 0
jne 0x412321
mov ebx, dword [ebp + 0x10]
mov esi, dword [edi + 0x28]
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00411870
mov dword [edi + 0x28], esi
test eax, eax
jne 0x412106
mov eax, dword [ebp + 0xc]
cmp eax, 0x111
jne 0x41229a
movzx eax, bx
mov ecx, 0x3ea
cmp cx, ax
jne 0x41211f
mov eax, dword [edi + 0x74]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
je 0x4120c4
sub esp, 0x28
mov eax, esp
mov dword [ebp + 0xc], esp
mov dword [eax + 0x24], 0
push 1
push 0
push str.click_exit
mov dword [ebp - 4], 0
call fcn.0040f8c0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00407790
push str.quit
call fcn.0040e440
add esp, 4
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0041de00
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
call fcn.0041d530
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, 0x3e8
cmp cx, ax
jne 0x412209
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0x17]
call fcn.0040ee40
lea eax, [ebp + 0x14]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.0040f8c0
mov ecx, eax
call fcn.004074c0
push eax
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 2
call fcn.00405d60
mov edx, dword [ebp + 0x1c]
or esi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412182
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
push 0
push 0
push dword [ebp + 0x14]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0041de00
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
call fcn.0041d530
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4120fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, 0x3e9
cmp cx, ax
jne 0x412245
lea eax, [ebp + 0xc]
shr ebx, 0x10
push eax
mov eax, dword [ebp + 0x14]
push eax
push ecx
push ebx
mov ecx, edi
call fcn.00410a30
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, 0x3eb
cmp cx, ax
jne 0x412281
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x14]
push eax
push ecx
shr ebx, 0x10
mov ecx, edi
push ebx
call fcn.00410280
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, 0x3ec
cmp cx, ax
jne 0x412321
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x14]
push eax
push ecx
jmp 0x412258
cmp eax, 0x464
jne 0x4122b0
cmp dword [ebp + 0x14], 0
jne 0x4120fd
jmp 0x4120c4
cmp eax, 0x1400
jne 0x4122fb
cmp dword [edi + 0x110], 4
mov esi, dword [edi + 4]
jne 0x4122c9
mov esi, dword [edi + 0x80]
push esi
call dword [sym.imp.USER32.dll_IsIconic]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4122df
push 9
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4122ef
push 5
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x4120fd
cmp eax, 0x10
jne 0x412321
mov ecx, edi
mov dword [edi + 0x70], 1
call fcn.00410490
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp dword [edi + 0x70], 0
jne 0x412106
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18