Function at 0x4093a5
Capabilities:
Create process on windows

Disassembly:
push 0x108
push 0x42c7e0
call fcn.00417c38
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xbc], ecx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xb4], 0x20
lea eax, [ebp - 0xb4]
push eax
push esi
xor eax, eax
inc eax
push eax
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x41bc8d
xor ecx, ecx
inc ecx
mov dword [ebp - 0xb8], ecx
push esi
push esi
push 4
lea eax, [ebp - 0xb8]
push eax
push 0x60001
push esi
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x41bca9
push 0x48
push esi
lea eax, [ebp - 0x118]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0x118], 0x48
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], esi
xor ecx, ecx
inc ecx
mov dword [ebp - 0x104], ecx
push 0x64
pop eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xec], esi
mov word [ebp - 0xe8], cx
push 0x44
push esi
lea eax, [ebp - 0x68]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x68], 0x44
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x110], eax
mov dword [ebp - 4], esi
mov ecx, 0x40220c
call fcn.00411d10
test eax, eax
jne 0x4094cf
mov eax, 0x4020a8
mov ecx, eax
call fcn.0040abd0
mov dword [ebp - 0xb0], eax
test eax, eax
je 0x41bce5
cmp dword [0x435748], 0
je 0x41bd00
push 0x5c
pop edx
mov ecx, ebx
call fcn.00410145
test eax, eax
je 0x409513
push 0x4020ac
push eax
call dword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
test eax, eax
je 0x41bd1f
call fcn.00408185
mov eax, dword [0x435738]
test eax, eax
jne 0x409653
mov eax, dword [0x447de8]
test eax, eax
je 0x41bd60
lea ecx, [ebp - 0xcc]
push ecx
lea ecx, [ebp - 0x118]
push ecx
push eax
push esi
push 0x80000
xor eax, eax
inc eax
push eax
push esi
push esi
push edi
push ebx
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x41bd6a
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xa4], eax
push dword [ebp - 0xc8]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov edx, dword [ebp - 0xb0]
mov ecx, 0x40220c
call fcn.0040a891
test edi, edi
je 0x41bd80
mov eax, dword [ebp - 0xa4]
mov edi, eax
xor ecx, ecx
inc ecx
and edi, ecx
mov ecx, eax
push 2
pop edx
and ecx, edx
test eax, eax
je 0x40968f
mov ebx, dword [ebp - 0xa8]
cmp dword [0x435748], 0
je 0x409663
mov dword [ebp - 0xac], esi
xor eax, eax
inc eax
mov dword [0x431588], eax
test ebx, ebx
jne 0x409675
mov ecx, dword [ebp - 0xa4]
call fcn.0040813c
mov dword [0x4355cc], eax
mov dword [ebp - 0xa4], esi
mov esi, eax
mov dword [ebp - 0xac], esi
push esi
push 0x402064
push 0x14
lea eax, [ebp - 0x4c]
push eax
call fcn.004099ff
add esp, 0x10
lea edx, [ebp - 0x4c]
mov ecx, 0x402070
call fcn.0040a891
cmp esi, 0x20
jge 0x41be48
mov edx, 0x402084
mov ecx, 0x402088
call fcn.0040a891
test edi, edi
jne 0x41be6d
mov dword [ebp - 4], 0xfffffffe
call fcn.00409697
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x409525
jmp 0x41bd29
cmp dword [0x435738], 0
jne 0x4095be
jmp 0x41be06
cmp ebx, 4
je 0x41be77
cmp ebx, edx
jne 0x409633
mov eax, dword [ebp - 0xa4]
mov dword [0x4355d4], eax
jmp 0x409633
push 4
pop ebx
jmp 0x4095be
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [0x435798], eax
mov ecx, ebx
call fcn.00425a74
xor ecx, ecx
lea eax, [ecx + 1]
jmp 0x409641
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [0x435798], eax
mov ecx, ebx
call fcn.00425a74
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_DeleteProcThreadAttributeList]
jmp 0x41bcf8
push ebx
mov edx, 0x7fe7
mov ecx, esi
call fcn.0040f2e0
mov ecx, esi
call fcn.00425a74
mov ecx, esi
call fcn.0040dba0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x42d0b4
call sub.msvcrt.dll__local_unwind4
add esp, 0xc
xor eax, eax
inc eax
jmp 0x409641
cmp dword [0x448038], 0
jne 0x4094f1
cmp dword [0x435738], 0
je 0x409513
jmp 0x4094f1
call fcn.00424ef8
jmp 0x409513
mov eax, dword [0x447de8]
test eax, eax
jne 0x41bd37
mov eax, 0x447be0
lea edx, [ebp - 0xcc]
push edx
lea edx, [ebp - 0x118]
push edx
push eax
push esi
push 0x80000
xor eax, eax
inc eax
push eax
push esi
push esi
push edi
push ebx
push ecx
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessAsUserW]
jmp 0x409555
mov eax, 0x447be0
jmp 0x409532
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [ebp - 0xac], eax
mov dword [0x435798], eax
jmp 0x409577
cmp byte [0x435745], 0
je 0x41bd95
cmp dword [0x435798], 0xc1
je 0x41bda1
cmp dword [0x435798], 0x2e4
jne 0x41bde5
call fcn.0041727f
test al, al
je 0x41bde3
mov ecx, dword [0x447de8]
test ecx, ecx
jne 0x41bdb9
mov ecx, 0x447be0
push 0x435798
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [ebp - 0xe8]
push eax
push ecx
mov eax, dword [ebp - 0xbc]
push dword [eax + 0x3c]
push ebx
push esi
call dword [sym.imp.ext_ms_win_cmd_util_l1_1_0.dll_ShellExecuteWorker]
mov edi, eax
jmp 0x41bde5
mov edi, esi
test edi, edi
jne 0x40958f
mov ecx, 0xffce
call fcn.0040dc10
mov esi, eax
test esi, esi
je 0x41bce5
jmp 0x41bcca
cmp byte [0x435745], 0
je 0x4095be
cmp dword [0x448038], 0
jne 0x4095be
test ebx, ebx
jne 0x4095be
test ecx, ecx
jne 0x40968f
mov ecx, eax
call fcn.00425d4b
push 2
pop edx
cmp dx, ax
jne 0x4095be
jmp 0x40968f
cmp esi, 0x7e
jg 0x40961c
push esi
push 0x403b3c
push 0xc
lea eax, [ebp - 0x80]
push eax
call fcn.004099ff
add esp, 0x10
lea edx, [ebp - 0x80]
jmp 0x409621
call fcn.00426213
jmp 0x409633
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x409633
push eax
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov dword [ebp - 0xa4], esi
jmp 0x409633