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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x76c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
call fcn.01010199
test al, al
jne 0x1010666
or dword [esi], 2
jmp 0x101120f
push edi
lea eax, [ebp - 0x76c]
push eax
mov byte [0x101c1be], 1
call fcn.01018384
lea eax, [ebp - 0x76c]
push eax
push dword [0x101c1c4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor eax, eax
cmp dword [0x101c240], ebx
setne al
xor ecx, ecx
cmp dword [0x101c23c], ebx
setne cl
lea eax, [ecx + eax*2]
xor ecx, ecx
cmp dword [0x101c238], ebx
setne cl
lea eax, [ecx + eax*2]
xor ecx, ecx
cmp dword [0x101c230], ebx
setne cl
lea eax, [ecx + eax*2]
xor ecx, ecx
cmp dword [0x101c22c], ebx
setne cl
lea edi, [ecx + eax*2]
mov dword [ebp - 0x18], edi
cmp edi, ebx
je 0x10106ec
cmp edi, 7
je 0x10106ec
push 0x10061a8
call fcn.01011f22
pop ecx
jmp 0x101120b
mov ecx, dword [0x101c25c]
xor eax, eax
cmp dword [0x101c260], ebx
setne al
xor edx, edx
cmp ecx, ebx
setne dl
add eax, edx
xor edx, edx
cmp dword [0x101c258], ebx
setne dl
add eax, edx
xor edx, edx
cmp dword [0x101c254], ebx
setne dl
add eax, edx
mov dword [ebp - 0x14], eax
je 0x1010787
cmp eax, 4
je 0x1010731
push 0x1006160
jmp 0x10106e1
push 0xa
lea edx, [ebp + 8]
call fcn.01019cf0
mov ecx, dword [0x101c25c]
mov dword [0x101c2ac], eax
cmp dword [ebp + 8], ecx
je 0x101077f
cmp eax, ebx
je 0x101077f
mov ecx, dword [0x101c260]
push 0xa
lea edx, [ebp + 8]
call fcn.01019cf0
mov dword [0x101c2b0], eax
mov eax, dword [0x101c260]
cmp dword [ebp + 8], eax
jne 0x1010787
push eax
push 0x1006128
call fcn.01011f22
pop ecx
jmp 0x10106e6
push ecx
push 0x10060f8
jmp 0x1010774
cmp edi, ebx
jne 0x10107b1
cmp dword [ebp - 0x14], ebx
jne 0x10107b1
mov eax, dword [0x101c270]
cmp eax, ebx
je 0x1010968
push 0x10060f4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1010968
call fcn.010120cf
cmp edi, ebx
jne 0x10107c3
cmp dword [ebp - 0x14], ebx
je 0x1010968
cmp byte [0x101c1bd], bl
je 0x1010968
push dword [0x101c1f8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x46c]
push eax
call edi
lea eax, [ebp - 0x46c]
push 0x2e
push eax
call fcn.01018b5f
pop ecx
pop ecx
cmp eax, ebx
jne 0x101080c
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + eax*2 - 0x46c]
mov ecx, 0x10060e4
cmp byte [0x101c1bc], bl
jne 0x101081e
mov ecx, 0x10060d4
push ecx
push eax
call edi
push 0x78
pop eax
push 0x20
mov word [ebp - 0x264], ax
pop eax
push dword [0x101c1f4]
mov word [ebp - 0x262], ax
lea eax, [ebp - 0x260]
push eax
call edi
lea eax, [ebp - 0x46c]
push eax
push 0x10060b8
push 7
call fcn.01017562
lea eax, [ebp - 0x264]
push eax
push 0x1006090
push 7
call fcn.01017562
mov edi, dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
add esp, 0x18
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x5c]
push eax
call edi
push 0x10
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x5c], ebx
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x5c]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10108dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x66c]
call fcn.0100e252
push eax
lea eax, [ebp - 0x46c]
push eax
push 0x1006030
call fcn.01011f22
add esp, 0xc
jmp 0x101120b
push dword [ebp - 8]
lea eax, [ebp - 0x46c]
push eax
push 0x1005ffc
push 6
call fcn.01017562
add esp, 0x10
cmp byte [0x101c1dc], 0
je 0x1010953
push dword [ebp - 8]
lea eax, [ebp - 0x46c]
push eax
push 0x1005fc0
push 6
call fcn.01017562
add esp, 0x10
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1010953
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x66c]
call fcn.0100e252
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x46c]
push eax
push 0x1005f70
push 9
call fcn.01017562
add esp, 0x14
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x10]
call edi
jmp 0x1010e97
cmp byte [0x101c1dd], bl
jne 0x1010981
call fcn.01018835
test al, al
jne 0x1010981
or dword [esi], 2
jmp 0x1010e97
push dword [0x101c1fc]
mov ecx, dword [0x101c29c]
push 0x1005f50
push dword [0x101c200]
mov edx, 0x101c2a0
call fcn.01011fd0
test al, al
je 0x101120b
mov edi, 0x104
push 0x1005f34
mov edx, edi
lea ecx, [ebp - 0x264]
call fcn.01019ef0
push dword [0x101c200]
mov edx, edi
lea ecx, [ebp - 0x264]
call fcn.01019f00
mov ecx, dword [0x101c2a4]
push 0x1005f2c
lea eax, [ebp - 0x264]
push eax
push 0x1005f04
mov edx, 0x101c2a8
call fcn.01011fd0
test al, al
je 0x101120b
cmp byte [0x101c1e2], bl
je 0x1010a12
call fcn.01014f93
test al, al
je 0x101120b
mov eax, dword [0x101c228]
cmp eax, ebx
je 0x1010a99
mov edx, dword [0x101c208]
push eax
lea ecx, [ebp - 0x264]
call fcn.0101739e
lea eax, [ebp - 0x264]
push eax
call fcn.0100f0e8
test al, al
jne 0x1010a79
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
jne 0x1010a5a
push dword [0x101c228]
push 0x1005ecc
jmp 0x1010774
call edi
push eax
lea ecx, [ebp - 0x66c]
call fcn.0100e252
push eax
push dword [0x101c228]
push 0x1005e88
jmp 0x10108d0
lea ecx, [ebp - 0x264]
call fcn.01016fef
push eax
push 0x1005e58
push 0x17
mov dword [0x101c2bc], eax
call fcn.01017562
add esp, 0xc
cmp dword [ebp - 0x18], ebx
je 0x1010aa3
call fcn.0101365d
mov eax, dword [0x101c2bc]
mov ecx, 0x1005de8
cmp eax, ebx
jne 0x1010ab6
mov ecx, 0x1001b68
push ecx
push dword [0x101c21c]
neg eax
push dword [0x101c214]
sbb eax, eax
push 0x1005d58
push 6
pop edi
push edi
and eax, 0x4000
push edi
or eax, 0x124
push eax
call fcn.0101833c
push eax
call fcn.01011f41
add esp, 0x20
cmp eax, edi
sete bl
mov eax, 0x1005d44
test bl, bl
jne 0x1010afd
mov eax, 0x1005d30
push eax
push 0x1005d10
push 7
call fcn.01017562
add esp, 0xc
test bl, bl
je 0x1010e97
push 0x1005cd0
push edi
call fcn.01017562
pop ecx
pop ecx
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x46c]
push eax
push 0x101c2cc
call fcn.01014631
test al, al
je 0x1010c61
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x44
pop ebx
lea eax, [ebp - 0x46c]
push eax
push dword [0x101c214]
push 0x1005af8
push 7
push 7
push 0x33
push 0
call fcn.01011f41
add esp, 0x1c
cmp eax, 2
je 0x1010c7d
cmp eax, 7
je 0x1010cbe
push ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
push 0x10
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x5c]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x264]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1010c84
push dword [ebp - 8]
lea eax, [ebp - 0x264]
push eax
push 0x1005aa8
push 8
call fcn.01017562
add esp, 0x10
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0xc]
call edi
push dword [ebp - 0x10]
call edi
push dword [ebp + 8]
push dword [ebp + 8]
push 0x1005a6c
push 8
call fcn.01017562
add esp, 0x10
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1005848
push 7
push 7
push 0x34
push 0
call fcn.01011f41
add esp, 0x14
cmp eax, 6
jne 0x1010c7d
push 0x1005cd0
push eax
call fcn.01017562
pop ecx
pop ecx
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x46c]
push eax
push 0x101c2cc
call fcn.01014631
test al, al
jne 0x1010b4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x476
jne 0x1010cb0
push 0x10055f8
call fcn.01011f22
or dword [esi], 2
jmp 0x1010cbd
call fcn.01012109
jmp 0x1010cbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x66c]
call fcn.0100e252
push eax
lea eax, [ebp - 0x264]
push eax
push 0x1005580
call fcn.01011f22
add esp, 0xc
or dword [esi], 2
jmp 0x1010cbe
push 0x1005540
push 8
call fcn.01017562
pop ecx
pop ecx
mov eax, dword [esi]
shr eax, 1
test al, 1
jne 0x101120e
test byte [esi], 1
jne 0x101120e
cmp byte [0x101c1e3], 0
jne 0x101120e
mov ecx, 0x101c22c
call fcn.01017233
mov ecx, 0x101c230
call fcn.01017233
mov ecx, 0x101c238
call fcn.01017233
mov ecx, 0x101c23c
call fcn.01017233
mov ecx, 0x101c240
call fcn.01017233
mov ecx, 0x101c254
call fcn.01017233
mov eax, dword [0x101c278]
xor edi, edi
cmp eax, edi
je 0x1010db4
cmp word [eax], di
je 0x1010db4
push 0x7c
push dword [0x101c274]
lea ecx, [ebp - 0x10]
xor bl, bl
call fcn.010172e0
mov eax, dword [ebp - 0xc]
cmp word [eax], di
je 0x1010dac
push 0x104
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x10]
call fcn.0101730f
xor eax, eax
mov word [ebp - 0x46c], ax
lea eax, [ebp - 0x46c]
push eax
push edi
lea eax, [ebp - 0x264]
push eax
call fcn.0100d7d0
test al, al
je 0x1010da0
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x46c]
push eax
push 0x10052f8
mov bl, 1
call fcn.01011f22
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.01017369
test bl, bl
je 0x1010d46
test bl, bl
jne 0x101120b
mov eax, dword [0x101c23c]
xor bl, bl
cmp eax, edi
je 0x1010de8
push eax
call fcn.01013509
test al, al
je 0x1010de8
cmp byte [0x101c1df], bl
jne 0x1010de8
push dword [0x101c22c]
push 0x10052b0
push 9
call fcn.01017562
add esp, 0xc
inc bl
mov eax, dword [0x101c230]
cmp eax, edi
je 0x1010e2a
push edi
lea ecx, [ebp - 0x264]
push ecx
push eax
call fcn.0100d7d0
test al, al
je 0x1010e2a
cmp byte [0x101c1df], 0
jne 0x1010e2a
lea eax, [ebp - 0x264]
push eax
push dword [0x101c22c]
push 0x1005260
push 9
call fcn.01017562
add esp, 0x10
mov bl, 1
mov eax, dword [0x101c254]
cmp eax, edi
je 0x1010e5d
push eax
call fcn.010156a2
test al, al
je 0x1010e5d
cmp byte [0x101c1df], 0
jne 0x1010e5d
push dword [0x101c254]
push 0x1005220
push 9
call fcn.01017562
add esp, 0xc
mov bl, 1
test bl, bl
je 0x1010ea1
cmp dword [0x101c084], 6
mov eax, 0x10051f0
jae 0x1010e74
mov eax, 0x10051c8
push eax
push dword [0x101c214]
push 0x1004e48
push 6
push 7
push 0x134
push edi
call fcn.01011f41
add esp, 0x1c
cmp eax, 6
je 0x1010ea1
call fcn.01012109
jmp 0x101120e
cmp dword [0x101c224], edi
je 0x1010ebe
call fcn.0101894b
test al, al
jne 0x1010ebe
cmp byte [0x101c1e3], 0
jmp 0x1011209
call fcn.010189bc
test al, al
je 0x1010eb2
push dword [0x101c1b8]
push 0x1004e08
push 6
call fcn.01017562
push dword [0x101c294]
push 0x1004dc8
push 6
call fcn.01017562
add esp, 0x18
cmp byte [0x101c1df], 0
mov eax, 0x1004db4
jne 0x1010f01
mov eax, 0x1004da4
push eax
push 0x1004d84
push 6
call fcn.01017562
mov eax, dword [0x101c23c]
add esp, 0xc
mov ebx, 0x1004d74
cmp eax, edi
je 0x1010f6c
push eax
call fcn.01013509
test al, al
je 0x1010f6c
cmp byte [0x101c1df], 0
je 0x1010fe7
mov edx, dword [0x101c22c]
mov ecx, ebx
call fcn.01012086
test al, al
je 0x101120b
push dword [0x101c22c]
lea eax, [ebp + 8]
push eax
call fcn.010135cc
mov eax, dword [eax]
or dword [esi], eax
mov eax, dword [esi]
shr eax, 1
test al, 1
jne 0x101120e
xor edi, edi
mov eax, dword [0x101c230]
cmp eax, edi
je 0x1011010
push edi
lea ecx, [ebp - 0x264]
push ecx
push eax
call fcn.0100d7d0
test al, al
je 0x1011010
cmp byte [0x101c1df], 0
je 0x1010ff7
mov edx, dword [0x101c22c]
mov ecx, ebx
call fcn.01012086
test al, al
je 0x101120b
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0100e05e
mov eax, dword [eax]
or dword [esi], eax
mov eax, dword [esi]
shr eax, 1
test al, 1
jne 0x101120e
cmp byte [ebp + 0xb], 0
je 0x101100e
push dword [0x101c22c]
push 0x1004d18
jmp 0x1010774
push dword [0x101c22c]
push 0x1004cd4
jmp 0x1010774
lea eax, [ebp - 0x264]
push eax
push dword [0x101c22c]
push 0x1004c70
jmp 0x10108d0
xor edi, edi
mov eax, dword [0x101c254]
cmp eax, edi
je 0x1011069
push eax
call fcn.010156a2
test al, al
je 0x1011069
cmp byte [0x101c1df], 0
je 0x101123b
mov edx, dword [0x101c254]
mov ecx, 0x1004c60
call fcn.01012086
test al, al
je 0x101120b
push dword [0x101c254]
lea eax, [ebp + 8]
push eax
call fcn.01015861
mov eax, dword [eax]
or dword [esi], eax
mov eax, dword [esi]
shr eax, 1
test al, 1
jne 0x101120e
xor edi, edi
mov ecx, 0x1004b98
call fcn.01012116
test al, al
je 0x101120b
push dword [0x101c214]
push 0x1002bcc
push 1
call fcn.0101220e
add esp, 0xc
test al, al
je 0x101120b
push edi
push 2
call fcn.0101220e
pop ecx
pop ecx
test al, al
je 0x101120b
cmp byte [0x101c1e2], 0
je 0x10110c5
push edi
push 3
call fcn.0101220e
pop ecx
pop ecx
test al, al
je 0x101120b
push dword [0x101c1b8]
lea eax, [ebp + 8]
push eax
call fcn.0100f45c
mov eax, dword [eax]
or dword [esi], eax
mov eax, dword [esi]
shr eax, 1
test al, 1
jne 0x101120e
lea eax, [ebp + 8]
push eax
call fcn.0100e943
mov eax, dword [eax]
or dword [esi], eax
mov eax, dword [esi]
shr eax, 1
test al, 1
jne 0x101120e
call fcn.0100e69b
test al, al
je 0x101120b
lea eax, [ebp + 8]
push eax
call fcn.0100f77d
mov eax, dword [eax]
or dword [esi], eax
mov eax, dword [esi]
shr eax, 1
test al, 1
jne 0x101120e
call fcn.0100e69b
test al, al
je 0x101120b
mov eax, dword [0x101c270]
xor edi, edi
cmp eax, edi
je 0x1011158
push 0x10060f4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1011158
call fcn.0101491e
test al, al
je 0x101120b
cmp dword [0x101c254], edi
je 0x1011199
call fcn.0100e69b
test al, al
je 0x101120b
call fcn.01012a27
push dword [0x101c2b0]
push dword [0x101c2ac]
push dword [0x101c258]
push dword [0x101c214]
push dword [0x101c254]
call fcn.010156f2
test al, al
je 0x101120b
cmp dword [0x101c22c], edi
je 0x10111e5
call fcn.0100e69b
test al, al
je 0x101120b
call fcn.010138fb
cmp dword [0x101c238], edi
je 0x10111d4
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0100dbfb
test al, al
je 0x101120b
cmp byte [ebp + 0xb], 0
je 0x10111d4
or dword [esi], 1
cmp dword [0x101c23c], edi
je 0x10111e5
call fcn.0101353d
test al, al
je 0x101120b
cmp dword [0x101c288], edi
je 0x1011202
lea eax, [ebp + 8]
push eax
call fcn.01010400
mov eax, dword [eax]
or dword [esi], eax
mov eax, dword [esi]
shr eax, 1
test al, 1
jne 0x101120e
call fcn.0100e69b
test al, al
jne 0x101120e
or dword [esi], 2
pop edi
mov eax, dword [esi]
shr eax, 1
test al, 1
je 0x1011233
push 0xffffffffffffffff
push dword [0x101c1e8]
lea eax, [ebp + 8]
push eax
call fcn.01017f26
mov eax, dword [eax]
or dword [esi], eax
mov byte [0x101c1e0], 0
mov eax, esi
pop esi
pop ebx
leave
ret 4
push dword [0x101c254]
push 0x1005220
jmp 0x1010774