Function at 0x412910
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efc12
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x536014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0041baa0
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x412959
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x41295d
mov ecx, eax
call edx
add eax, 0x10
mov dword [ebp - 0x124], eax
mov dword [ebp - 4], 0
lea edx, [ebp - 0x124]
cmp dword [0x53c784], 8
mov ecx, 0x53c770
cmovae ecx, dword [0x53c770]
call fcn.00459e30
mov ebx, dword [ebp - 0x124]
cmp dword [ebx - 0xc], 0
jle 0x412a3c
lea eax, [ebp - 0x124]
mov edx, 0x50ca04
push eax
lea ecx, [ebp - 0x130]
call fcn.004145b0
add esp, 4
mov byte [ebp - 4], 1
lea esi, [ebx - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4129ff
cmp dword [esi + 0xc], 0
jl 0x4129ea
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4129ea
call fcn.00415bc0
mov ecx, esi
mov ebx, eax
call fcn.0041b640
add ebx, 0x10
mov dword [ebp - 0x124], ebx
jmp 0x4129ff
push dword [edx - 0xc]
lea ecx, [ebp - 0x124]
push edx
call fcn.00415c70
mov ebx, dword [ebp - 0x124]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x130]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x412a3c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412a38
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x412a3c
mov ecx, edx
call esi
call fcn.0041baa0
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x412a57
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x412a5b
mov ecx, eax
call edx
add eax, 0x10
mov dword [ebp - 0x120], eax
mov byte [ebp - 4], 2
call fcn.0045b780
mov ecx, 0x501
cmp ax, cx
jne 0x412a8b
push 5
push 0x50ca0c
lea ecx, [ebp - 0x120]
call fcn.00415c70
jmp 0x412aff
call fcn.0045b780
mov ecx, 0x600
cmp ax, cx
jne 0x412aae
push 8
push str.WinVista
lea ecx, [ebp - 0x120]
call fcn.00415c70
jmp 0x412aff
call fcn.0045b780
mov ecx, 0x601
cmp ax, cx
jne 0x412ad1
push 4
push str.Win7
lea ecx, [ebp - 0x120]
call fcn.00415c70
jmp 0x412aff
call fcn.0045b780
mov ecx, 0x602
cmp ax, cx
je 0x412aef
call fcn.0045b780
mov ecx, 0xa00
cmp ax, cx
jne 0x412aff
push str.Win10
lea ecx, [ebp - 0x120]
call fcn.00414730
call fcn.0041baa0
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x412b1a
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x412b1e
mov ecx, eax
call edx
add eax, 0x10
mov dword [ebp - 0x128], eax
lea edx, [ebp - 0x128]
mov byte [ebp - 4], 3
mov ecx, str.C:WindowsSystem32kernel32.dll
call fcn.00459e30
mov edi, dword [ebp - 0x128]
cmp dword [edi - 0xc], 0
je 0x412b68
push 1
push 0x50ce28
lea ecx, [ebp - 0x120]
call fcn.00416410
push dword [edi - 0xc]
lea ecx, [ebp - 0x120]
push edi
call fcn.00416410
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.0048acb0
add esp, 0xc
mov dword [ebp - 0x11c], 0x104
lea eax, [ebp - 0x11c]
mov edx, 0x2c
mov ecx, str.aHR0cDovL2FiY2thbnR1LmNvbS9mZWVkYmFjay5odG1s
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0045b5c0
lea ecx, [ebp - 0x118]
add esp, 8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412bb1
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x11c], eax
cmp eax, 0x3fffffff
jg 0x412bff
add eax, eax
call fcn.004e33a0
mov esi, esp
test esi, esi
je 0x412bff
push dword [ebp - 0x11c]
xor eax, eax
push esi
push 0xffffffffffffffff
mov word [esi], ax
lea eax, [ebp - 0x118]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x412c01
xor esi, esi
push esi
lea ecx, [ebp - 0x12c]
call fcn.004148c0
mov byte [ebp - 4], 4
call fcn.0041baa0
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x412c2c
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x412c30
mov ecx, eax
call edx
add eax, 0x10
mov dword [ebp - 0x11c], eax
push ebx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x11c]
push dword [ebp - 0x120]
push dword [ebp - 0x12c]
push str._s_sysver_ssoftver_stagpdf
push eax
call fcn.00416b10
mov esi, dword [ebp - 0x11c]
add esp, 0x14
push 3
push 0
push 0
push esi
push 0x50c990
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x412cc1
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x11c], edi
mov edi, dword [ebp - 0x128]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412cb9
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x412cc1
mov ecx, edx
call dword [ebp - 0x11c]
mov byte [ebp - 4], 3
mov eax, esi
mov ecx, dword [ebp - 0x12c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x412d0d
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x11c], edi
mov edi, dword [ebp - 0x128]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412d05
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x412d0d
mov ecx, edx
call dword [ebp - 0x11c]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x412d43
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412d41
mov eax, dword [ecx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x412d49
call edx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0
mov eax, esi
mov ecx, dword [ebp - 0x120]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x412d8d
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [ebp - 0x11c], edx
mov edx, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412d85
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x412d8d
mov ecx, edx
call dword [ebp - 0x11c]
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], esi
dec esi
test esi, esi
jg 0x412dbe
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412dbc
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x412dbe
call edx
lea esp, [ebp - 0x140]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466907
mov esp, ebp
pop ebp
ret