Function at 0x1000cf30
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
sub esp, 0x4a4
push ebx
push edi
xor ebx, ebx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x60]
mov dword [esp + 0x58], 0x44
mov dword [esp + 0x5c], ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x4c], eax
push 0x208
mov dword [esp + 0x54], eax
push 8
mov dword [esp + 0x18], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
cmp edx, ebx
mov dword [esp + 0x20], edx
jne 0x1000cf94
pop edi
xor eax, eax
pop ebx
add esp, 0x4a4
ret
push ebp
mov ebp, dword [esp + 0x4b8]
or ecx, 0xffffffff
xor eax, eax
mov edi, dword [ebp + 0x90]
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x4c0]
and ecx, 3
cmp eax, 1
rep movsb byte es:[edi], byte [esi]
jne 0x1000d098
mov edx, dword [ebp + 0x90]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x10040e68
lea ecx, [ecx + edx + 1]
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
mov edx, dword [ebp + 0x90]
push str.TIMEOUT
neg eax
sbb eax, eax
mov edi, edx
inc eax
or ecx, 0xffffffff
mov dword [esp + 0x24], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ecx + edx + 1]
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
mov edx, dword [ebp + 0x90]
mov ebx, eax
add esp, 0x10
mov edi, edx
neg ebx
sbb ebx, ebx
or ecx, 0xffffffff
xor eax, eax
neg ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx + 1], 0x40
jne 0x1000d068
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + edx + 2]
mov ecx, dword [esp + 0x2c]
push eax
push 0x10040e7c
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x1000d098
mov eax, dword [ebp + 0x84]
cmp byte [eax], 0
je 0x1000d098
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call esi
cmp eax, 0xffffffff
je 0x1000d098
mov edx, dword [ebp + 0x84]
push edx
call esi
test al, 0x10
je 0x1000d098
mov eax, dword [ebp + 0x84]
mov dword [esp + 0x10], eax
call fcn.1000c760
test eax, eax
je 0x1000d0ec
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
call dword [0x10052ca4]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x50]
lea eax, [esp + 0x60]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0
push 0x200
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [0x10052c9c]
jmp 0x1000d117
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push 0
push 0x200
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
test esi, esi
je 0x1000d834
test ebx, ebx
jne 0x1000d557
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3b1]
mov byte [esp + 0x3b0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xa5]
mov byte [esp + 0xa4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1a9]
mov byte [esp + 0x1a8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, dword [sym.imp.MSVCRT.dll_strchr]
mov edx, 1
stosb byte es:[edi], al
mov eax, dword [esp + 0x4c0]
xor esi, esi
cmp eax, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
jne 0x1000d323
mov edx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x50]
push edx
push eax
call fcn.1000b680
add esp, 8
test eax, eax
jne 0x1000d323
mov ecx, dword [ebp + 0x94]
push 4
push 0x10040e84
push ecx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1000d323
xor edx, edx
mov byte [esp + 0x2c], al
mov eax, dword [ebp + 0x94]
mov dword [esp + 0x2d], edx
mov dword [esp + 0x31], edx
push 0x13
mov dword [esp + 0x39], edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x3d], edx
push eax
mov word [esp + 0x45], dx
push ecx
mov byte [esp + 0x4b], dl
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edx, [esp + 0x38]
push 0x5c
push edx
call ebx
add esp, 0x14
mov byte [eax], 0
call fcn.1000c760
test eax, eax
je 0x1000d257
lea eax, [esp + 0x2c]
push 0x10040e8c
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x1000d257
mov edi, 1
jmp 0x1000d259
xor edi, edi
lea ecx, [esp + 0x20]
push edi
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0x94]
lea eax, [esp + 0x3b8]
push edx
push eax
push 0x5c
push ecx
mov dword [esp + 0x34], 1
call ebx
add esp, 8
push eax
call fcn.1001cde0
add esp, 0x14
test eax, eax
je 0x1000d323
mov eax, dword [ebp + 0x94]
push edi
lea edx, [esp + 0xa8]
push 0x104
push edx
push 0x5c
push eax
call ebx
add esp, 8
push eax
call fcn.1001d140
add esp, 0x10
test eax, eax
je 0x1000d385
mov esi, dword [ebp + 0x8c]
lea eax, [esp + 0xa4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000d2f1
test cl, cl
je 0x1000d2ed
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000d2f1
add eax, 2
add esi, 2
test cl, cl
jne 0x1000d2cd
xor eax, eax
jmp 0x1000d2f6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000d385
mov edx, dword [ebp + 0x94]
lea ecx, [esp + 0x48]
push edi
push ecx
push 0x5c
push edx
mov dword [esp + 0x20], 0
call ebx
add esp, 8
push eax
call fcn.1001d250
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x4bc]
push ecx
push edx
push eax
call fcn.1000cd50
mov esi, eax
mov eax, dword [esp + 0x4d0]
add esp, 0x10
cmp eax, 1
jne 0x1000d3c3
mov ecx, dword [ebp + 0x54]
mov edx, dword [ebp + 0x50]
push ecx
push edx
call fcn.1000b680
add esp, 8
test eax, eax
je 0x1000d3c3
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x54]
cmp eax, ecx
jae 0x1000d3aa
test esi, esi
je 0x1000d3c1
mov edx, dword [esp + 0x14]
cmp edx, eax
jb 0x1000d3c1
cmp edx, ecx
ja 0x1000d3c1
mov esi, 1
jmp 0x1000d3c3
mov eax, dword [ebp + 0x94]
push edi
push 0x5c
push eax
mov dword [esp + 0x1c], 1
call ebx
add esp, 8
push eax
call fcn.1001ceb0
add esp, 8
jmp 0x1000d323
test esi, esi
je 0x1000d3c1
mov edx, dword [esp + 0x14]
cmp edx, eax
jae 0x1000d3ba
cmp edx, ecx
ja 0x1000d3c1
mov esi, 1
jmp 0x1000d3c3
xor esi, esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1000d834
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2ad]
mov byte [esp + 0x2ac], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, dword [ebp + 0x94]
mov dword [esp + 0x2d], eax
push 0x13
mov dword [esp + 0x35], eax
lea edx, [esp + 0x30]
mov dword [esp + 0x39], eax
mov edi, 1
mov dword [esp + 0x3d], eax
push ecx
mov word [esp + 0x45], ax
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0x104
mov byte [esp + 0x38], 0
mov byte [esp + 0x4b], al
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [esp + 0x38]
push 0x5c
push eax
call ebx
add esp, 0x14
mov byte [eax], 0
call fcn.1000c760
test eax, eax
je 0x1000d45e
lea ecx, [esp + 0x2c]
push 0x10040e94
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x1000d460
xor edi, edi
test esi, esi
je 0x1000d499
lea edx, [esp + 0x1c]
push edi
lea eax, [esp + 0x1c]
push edx
mov edx, dword [ebp + 0x94]
lea ecx, [esp + 0x2b4]
push eax
push ecx
push 0x5c
push edx
call ebx
add esp, 8
push eax
call fcn.1001cde0
add esp, 0x14
test eax, eax
je 0x1000d499
mov esi, 1
jmp 0x1000d49b
xor esi, esi
mov eax, dword [esp + 0x10]
push edi
test eax, eax
je 0x1000d4c4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [ebp + 0x94]
lea edx, [esp + 0x3b8]
push ecx
push edx
push 0x5c
push eax
jmp 0x1000d826
mov edx, dword [ebp + 0x94]
lea ecx, [esp + 0x1ac]
push 0x104
push ecx
push 0x5c
push edx
call ebx
add esp, 8
push eax
call fcn.1001d140
add esp, 0x10
test eax, eax
je 0x1000d834
mov ecx, dword [ebp + 0x94]
lea eax, [esp + 0x40]
push edi
push eax
push 0x5c
push ecx
call ebx
add esp, 8
push eax
call fcn.1001d250
add esp, 0xc
test esi, esi
je 0x1000d550
lea edx, [esp + 0x1a8]
lea eax, [esp + 0xa4]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x1000d546
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
cmp ecx, eax
jne 0x1000d546
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
cmp edx, eax
je 0x1000d550
mov esi, 1
jmp 0x1000d834
xor esi, esi
jmp 0x1000d834
mov edx, dword [ebp + 0x90]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [sym.imp.MSVCRT.dll_strchr]
push 0x3d
not ecx
dec ecx
lea eax, [ecx + edx + 1]
push eax
call ebx
mov esi, eax
push 0x3a
inc esi
mov dword [esp + 0x1c], 0
push esi
call ebx
add esp, 0x10
test eax, eax
je 0x1000d623
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xa5]
mov byte [esp + 0xa4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x3a
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xa8]
push ecx
call ebx
mov esi, dword [sym.imp.MSVCRT.dll_strtoul]
push 0
lea edx, [esp + 0xb0]
push 0
push edx
mov byte [eax], 0
call esi
mov dword [esp + 0x2c], eax
lea edi, [esp + 0xb8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push 0
lea eax, [esp + ecx + 0xc1]
push eax
call esi
add esp, 0x20
mov dword [esp + 0x10], eax
jmp 0x1000d635
push 0
push 0
push esi
call dword [sym.imp.MSVCRT.dll_strtoul]
add esp, 0xc
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x94]
mov esi, dword [sym.imp.MSVCRT.dll__strnicmp]
push 5
push 0x10040e9c
push eax
call esi
add esp, 0xc
test eax, eax
je 0x1000d6bc
mov ecx, dword [ebp + 0x94]
push 0xb
push 0x10040ea4
push ecx
call esi
add esp, 0xc
test eax, eax
je 0x1000d6bc
mov edx, dword [ebp + 0x94]
push 5
push str._REF_
push edx
call esi
add esp, 0xc
test eax, eax
jne 0x1000d550
call fcn.1000c760
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0x94]
push eax
mov eax, dword [esp + 0x14]
push 2
push eax
push ecx
push 0x5c
push edx
call ebx
add esp, 8
push eax
mov eax, dword [esp + 0x4cc]
push eax
call fcn.1000cc30
add esp, 0x18
mov esi, eax
jmp 0x1000d834
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1a9]
mov byte [esp + 0x1a8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x104
call fcn.1000c760
test eax, eax
je 0x1000d712
mov ecx, dword [ebp + 0x94]
push 0xb
push 0x10040eb0
push ecx
call esi
add esp, 0xc
test eax, eax
je 0x1000d712
mov esi, 1
mov dword [esp + 0x14], esi
jmp 0x1000d71e
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x24]
push esi
lea eax, [esp + 0x24]
push edx
mov edx, dword [ebp + 0x94]
lea ecx, [esp + 0x1b0]
push eax
push ecx
push 0x5c
push edx
call ebx
add esp, 8
push eax
call fcn.1001cde0
add esp, 0x14
mov dword [esp + 0x48], eax
test eax, eax
je 0x1000d768
mov eax, dword [ebp + 0x94]
push esi
push 0x5c
push eax
call ebx
add esp, 8
push eax
call fcn.1001ceb0
add esp, 8
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2ad]
mov byte [esp + 0x2ac], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
stosw word es:[edi], ax
push esi
push 1
stosb byte es:[edi], al
mov eax, dword [ebp + 0x94]
push ecx
push edx
push 0x5c
push eax
mov dword [esp + 0x58], 1
mov dword [esp + 0x34], 0x104
call ebx
mov ecx, dword [esp + 0x4d0]
add esp, 8
push eax
push ecx
call fcn.1000cc30
add esp, 0x18
test eax, eax
je 0x1000d7f8
lea edx, [esp + 0x1c]
push esi
lea eax, [esp + 0x44]
push edx
mov edx, dword [ebp + 0x94]
lea ecx, [esp + 0x2b4]
push eax
push ecx
push 0x5c
push edx
call ebx
add esp, 8
push eax
call fcn.1001cde0
add esp, 0x14
test eax, eax
je 0x1000d7f8
mov esi, 1
jmp 0x1000d7fa
xor esi, esi
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1000d834
test esi, esi
jne 0x1000d834
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
push ecx
mov ecx, dword [ebp + 0x94]
lea eax, [esp + 0x1b0]
push edx
push eax
push 0x5c
push ecx
call ebx
add esp, 8
push eax
call fcn.1001cf50
add esp, 0x14
mov edx, dword [esp + 0x28]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x4a4
ret