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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478715
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x4a3110]
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
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe0], ebx
cmp dword [esi + 0x10], edi
je 0x4185e0
cmp dword [esi + 0x14], 8
jb 0x41831e
mov eax, dword [esi]
jmp 0x418320
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4185e0
xor ecx, ecx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], cx
push 1
push edi
lea edx, [ebp - 0xe4]
push edx
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0xe4], 0x20
call fcn.00404080
cmp eax, 0xffffffff
je 0x418548
push 0x480f38
lea ecx, [ebp - 0x48]
call fcn.004023c0
lea eax, [ebp - 0x48]
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00417ed0
add esp, 8
test al, al
je 0x41839f
push esi
lea ecx, [ebp - 0xb8]
call fcn.00402280
mov byte [ebp - 4], 2
mov ebx, 1
jmp 0x4183fd
push 0x480f38
lea ecx, [ebp - 0xd4]
call fcn.004023c0
push esi
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov dword [ebp - 4], 3
mov dword [ebp - 0xd8], 2
call fcn.0040e910
push 0x480f38
push eax
lea edx, [ebp - 0x80]
push edx
mov dword [ebp - 4], 4
mov dword [ebp - 0xd8], 6
call fcn.00401880
add esp, 0x18
mov dword [ebp - 4], 5
mov ebx, 0xe
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0xd8], ebx
call fcn.00401710
test bl, 8
je 0x41841c
lea ecx, [ebp - 0x80]
and ebx, 0xfffffff7
call fcn.0041e180
test bl, 4
je 0x41842f
lea ecx, [ebp - 0x9c]
and ebx, 0xfffffffb
call fcn.0041e180
test bl, 2
je 0x418442
lea ecx, [ebp - 0xd4]
and ebx, 0xfffffffd
call fcn.0041e180
mov dword [ebp - 4], 1
test bl, 1
je 0x418459
lea ecx, [ebp - 0xb8]
call fcn.0041e180
cmp dword [ebp - 0x34], 8
mov byte [ebp - 4], 0
jb 0x41846f
mov eax, dword [ebp - 0x48]
push eax
call fcn.0042a9e1
add esp, 4
mov ebx, dword [ebp - 0xe0]
push 0x47e530
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.00401790
mov ecx, dword [ebp - 0xdc]
push ecx
push eax
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 6
call fcn.0040e910
add esp, 0x18
mov esi, 8
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], esi
jb 0x4184b9
mov eax, dword [ebp - 0x48]
push eax
call fcn.0042a9e1
add esp, 4
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
lea edx, [ebp - 0xdc]
push edx
inc eax
mov word [ebp - 0x48], cx
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
call fcn.00411910
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x4184f7
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
sub ecx, esi
push eax
sar ecx, 1
push ecx
push esi
call fcn.0042bf17
push 0x40
xor eax, eax
lea edx, [ebp - 0x134]
push edi
push edx
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0x138], 0x44
call fcn.0042b970
add esp, 0x18
cmp dword [ebx + 0x10], edi
jne 0x418559
xor eax, eax
jmp 0x418565
push 0xffffffffffffffff
push edi
push esi
lea ecx, [ebp - 0x64]
call fcn.004014f0
jmp 0x418475
cmp dword [ebx + 0x14], 8
jb 0x418563
mov eax, dword [ebx]
jmp 0x418565
mov eax, ebx
lea ecx, [ebp - 0xf4]
push ecx
lea edx, [ebp - 0x138]
push edx
push eax
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x418592
mov eax, dword [ebp - 0xf0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0xf4]
cmp esi, edi
je 0x4185a5
push esi
call fcn.0042a9e1
add esp, 4
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x4185bb
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042a9e1
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x50], esi
jb 0x4185dc
mov eax, dword [ebp - 0x64]
push eax
call fcn.0042a9e1
add esp, 4
mov eax, ebx
jmp 0x4185e2
xor eax, eax
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.0042b571
mov esp, ebp
pop ebp
ret