Function at 0x410ba9
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x74
mov eax, 0x441db7
call fcn.0042baa9
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x28], esi
call fcn.0042b470
pop ecx
test eax, eax
jbe 0x410d96
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x410d96
call fcn.0040ad12
call fcn.0040a4a9
push 0x40
lea eax, [ebp - 0x7c]
push esi
push eax
mov dword [ebp - 0x80], esi
call fcn.0042bc20
mov dword [ebp - 0x3c], esi
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], esi
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 0x10]
push ecx
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x410d8c
cmp dword [ebp - 0x10], esi
je 0x410d8c
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push 0x13
push dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 0x20]
cmp eax, esi
jne 0x410c52
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
xor edi, edi
inc edi
push edi
push 2
push esi
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x410d7b
push esi
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
call dword [0x4c6498]
test eax, eax
je 0x410d5d
push dword [ebp + 0xc]
call fcn.0042b470
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
pop ecx
test eax, eax
jbe 0x410d2e
xor eax, eax
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], edi
mov word [ebp - 0x50], ax
mov dword [ebp - 0x24], esi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.004020d8
push 0x104
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
call fcn.004017cd
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push esi
push dword [ebp - 0x1c]
push 0x480
push esi
push esi
push esi
push eax
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
mov edi, eax
call fcn.00402f96
push 0xc8
call ebx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
cmp edi, esi
jne 0x410d1e
or dword [ebp - 4], 0xffffffff
call fcn.004012b7
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x32
jl 0x410cb1
jmp 0x410d23
call fcn.004012b7
cmp edi, esi
je 0x410d2e
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x3c], esi
je 0x410d42
cmp dword [ebp - 0x3c], 0xffffffff
je 0x410d42
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], esi
je 0x410d56
cmp dword [ebp - 0x38], 0xffffffff
je 0x410d56
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7d0
call ebx
cmp dword [ebp - 0x1c], esi
je 0x410d6a
push dword [ebp - 0x1c]
call sub.USERENV.dll_DestroyEnvironmentBlock
cmp dword [ebp - 0x14], esi
je 0x410d7b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x10], esi
je 0x410d8c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], esi
call fcn.0040a42e
mov eax, dword [ebp - 0x28]
jmp 0x410d98
xor eax, eax
call fcn.0042bb81
ret