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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa80
mov eax, dword [0x451220]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push eax
lea esi, [ebp - 0xa18]
mov dword [ebp - 0xa20], eax
mov dword [ebp - 0xa1c], ebx
call fcn.00406e38
push dword [eax]
call fcn.00413ab4
mov eax, dword [ebp - 0xa18]
pop ecx
add eax, 0xfffffff0
call fcn.00406e8b
xor eax, eax
push 0x7fe
mov word [ebp - 0xa14], ax
lea eax, [ebp - 0xa12]
push ebx
push eax
call fcn.00429ac0
add esp, 0xc
xor eax, eax
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push ebx
push eax
call fcn.00429ac0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x214]
push 0x5c
push eax
call fcn.0042838f
pop ecx
pop ecx
cmp eax, ebx
je 0x4037c3
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x214]
push 0x5c
push eax
call fcn.0042838f
mov edx, eax
pop ecx
pop ecx
cmp edx, ebx
je 0x4037c3
mov ecx, edx
lea eax, [ebp - 0x214]
sub ecx, eax
sar ecx, 1
mov eax, 0x208
push str.360safe.exe
sub eax, ecx
call fcn.00405074
lea eax, [ebp - 0x214]
push eax
lea esi, [ebp - 0xa18]
call fcn.00406e38
push dword [eax]
call fcn.00413ab4
mov eax, dword [ebp - 0xa18]
pop ecx
add eax, 0xfffffff0
call fcn.00406e8b
push 0x800
lea eax, [ebp - 0xa14]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
ja 0x403828
mov ecx, 0x400
push ecx
call fcn.00405839
test eax, eax
jl 0x403828
lea eax, [ebp - 0x214]
lea edx, [ebp - 0xa14]
call fcn.00405737
lea eax, [ebp - 0xa14]
push eax
lea esi, [ebp - 0xa18]
call fcn.00406e38
push dword [eax]
call fcn.00413ab4
mov eax, dword [ebp - 0xa18]
pop ecx
add eax, 0xfffffff0
call fcn.00406e8b
lea eax, [ebp - 0xa14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp - 0xa14]
push eax
jne 0x403890
lea esi, [ebp - 0xa1c]
call fcn.00406e38
push dword [eax]
call fcn.00413ab4
mov eax, dword [ebp - 0xa1c]
pop ecx
add eax, 0xfffffff0
call fcn.00406e8b
xor eax, eax
jmp 0x4039ba
call fcn.004114b4
pop ecx
test eax, eax
jne 0x4038a3
lea eax, [ebp - 0xa14]
push eax
jmp 0x403868
push 0x40
lea eax, [ebp - 0xa78]
push ebx
push eax
call fcn.00429ac0
xor eax, eax
mov dword [ebp - 0xa30], ebx
lea edi, [ebp - 0xa2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 5
pop eax
xor esi, esi
mov word [ebp - 0xa4c], ax
mov eax, dword [0x453c6c]
inc esi
mov ecx, 0x453c6c
mov dword [ebp - 0xa7c], 0x44
mov dword [ebp - 0xa50], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa18], eax
lea eax, [ebp - 0xa14]
cmp dword [ebp - 0xa20], ebx
je 0x403924
push dword [ebp - 0xa20]
push eax
lea eax, [ebp - 0xa18]
push str.__s___s
push eax
call fcn.0040678c
add esp, 0x10
jmp 0x403939
push eax
lea eax, [ebp - 0xa18]
push str.__s_
push eax
call fcn.0040678c
add esp, 0xc
mov edi, dword [ebp - 0xa18]
cmp dword [edi - 4], esi
jle 0x403959
push dword [edi - 0xc]
lea eax, [ebp - 0xa18]
push eax
call fcn.00406c40
mov edi, dword [ebp - 0xa18]
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0xa7c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
call fcn.00413ab4
add esp, 0xc
cmp esi, ebx
je 0x4039ac
push dword [ebp - 0xa2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xa30]
call esi
mov dword [ebp - 0xa1c], 1
lea eax, [edi - 0x10]
call fcn.00406e8b
mov eax, dword [ebp - 0xa1c]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427527
leave
ret 4