Function at 0x407c20
Capabilities:
Check if file exists
Create process on windows
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4dec58
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x526a28]
xor eax, esp
push eax
lea eax, [esp + 0x370]
mov dword fs:[0], eax
xor ebp, ebp
xor eax, eax
mov edi, ecx
mov word [esp + 0xe8], ax
mov ebx, 7
mov eax, edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0xfc], ebx
mov dword [esp + 0xf8], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x407c85
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0xe8]
call fcn.004095e0
mov dword [esp + 0x378], ebp
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0x108], cx
push ebp
mov eax, esi
lea ecx, [esp + 0x108]
mov dword [esp + 0x120], ebx
mov dword [esp + 0x11c], ebp
call fcn.004091e0
push edi
mov byte [esp + 0x37c], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407d3c
mov esi, 8
cmp dword [esp + 0x118], esi
jb 0x407d04
mov edx, dword [esp + 0x104]
push edx
call fcn.0040b651
add esp, 4
xor eax, eax
mov dword [esp + 0x118], ebx
mov dword [esp + 0x114], ebp
mov word [esp + 0x104], ax
cmp dword [esp + 0xfc], esi
jb 0x407d35
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.0040b651
add esp, 4
xor eax, eax
jmp 0x4082c7
mov eax, dword [esp + 0xf8]
lea esi, [eax - 1]
cmp eax, esi
ja 0x407d4f
call fcn.00474929
mov eax, dword [esp + 0xe8]
mov edi, 8
cmp dword [esp + 0xfc], edi
jae 0x407d6b
lea eax, [esp + 0xe8]
mov edx, 0x5c
lea ecx, [esp + 0xe4]
cmp dx, word [eax + esi*2]
jne 0x407d86
push 3
mov eax, 0x5194c4
jmp 0x407d8d
push 4
mov eax, 0x5192d8
call fcn.00409500
push 4
call fcn.0040b622
add esp, 4
cmp eax, ebp
je 0x407da8
lea ecx, [esp + 0x1c]
mov dword [eax], ecx
jmp 0x407daa
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov byte [esp + 0x378], 2
mov eax, dword [esp + 0xe8]
cmp dword [esp + 0xfc], edi
jae 0x407ddd
lea eax, [esp + 0xe8]
lea edx, [esp + 0x11c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x40], eax
cmp eax, 0xffffffff
jne 0x407e60
lea esi, [esp + 0x1c]
call fcn.00409290
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040b651
add esp, 4
cmp dword [esp + 0x118], edi
jb 0x407e24
mov ecx, dword [esp + 0x104]
push ecx
call fcn.0040b651
add esp, 4
xor edx, edx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x114], ebp
mov word [esp + 0x104], dx
cmp dword [esp + 0xfc], edi
jb 0x407d35
mov eax, dword [esp + 0xe8]
push eax
call fcn.0040b651
add esp, 4
xor eax, eax
jmp 0x4082c7
test byte [esp + 0x11c], 0x10
je 0x407f6b
cmp word [esp + 0x148], 0x2e
je 0x408153
lea ecx, [esp + 0x100]
push ecx
mov ebx, 0x5192e4
lea esi, [esp + 0x84]
call fcn.00409f80
add esp, 4
push eax
lea ebx, [esp + 0x14c]
lea esi, [esp + 0x68]
mov byte [esp + 0x37c], 3
call fcn.00409f80
add esp, 4
mov edi, eax
mov byte [esp + 0x378], 4
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
inc edx
cmp eax, edx
ja 0x407ed9
lea ebx, [esp + 0x1c]
call fcn.00409780
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea esi, [edx + ecx]
cmp eax, esi
ja 0x407eea
sub esi, eax
mov eax, dword [esp + 0x2c]
cmp dword [eax + esi*4], ebp
jne 0x407f04
push 0x1c
call fcn.0040b622
mov ecx, dword [esp + 0x30]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + esi*4]
push edi
call fcn.0040a040
inc dword [esp + 0x3c]
mov esi, 8
add esp, 4
cmp dword [esp + 0x7c], esi
jb 0x407f30
mov eax, dword [esp + 0x68]
push eax
call fcn.0040b651
add esp, 4
xor ecx, ecx
mov byte [esp + 0x378], 2
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], ebp
mov word [esp + 0x68], cx
cmp dword [esp + 0x98], esi
jb 0x407f64
mov edx, dword [esp + 0x84]
push edx
call fcn.0040b651
add esp, 4
mov edi, esi
jmp 0x408153
call fcn.0041075a
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x408255
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x378], 5
call fcn.0041075a
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x408255
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x148]
mov bl, 6
push ecx
lea esi, [esp + 0x4c]
mov byte [esp + 0x37c], bl
call fcn.00407330
add esp, 4
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x37c], 7
call fcn.00404840
mov byte [esp + 0x378], bl
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408011
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x44]
push str..exe
push ebx
call fcn.0046fdb3
add esp, 8
cmp eax, ebp
jne 0x40804f
push str..com
push ebx
call fcn.00470098
add esp, 8
test eax, eax
jne 0x40804f
push str..bat
push ebx
call fcn.00470098
add esp, 8
test eax, eax
je 0x408106
cmp dword [esp + 0x118], 8
mov eax, dword [esp + 0x104]
jae 0x408067
lea eax, [esp + 0x104]
lea ecx, [esp + 0x148]
push ecx
push eax
lea edx, [esp + 0x20]
push str._s_s
push edx
call fcn.00404780
xor eax, eax
push 0x40
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0xb4]
push ebp
push eax
mov dword [esp + 0x70], ebp
call fcn.004344a0
mov edi, dword [esp + 0x34]
mov esi, 1
mov ecx, 5
add esp, 0x1c
mov dword [esp + 0x9c], 0x44
mov dword [esp + 0xc8], esi
mov word [esp + 0xcc], cx
cmp dword [edi - 4], esi
jle 0x4080e2
mov edx, dword [edi - 0xc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00404b40
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0xa0]
push ecx
push ebp
push ebp
push 0x20
push ebp
push ebp
push ebp
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x408106
add dword [esp + 0x3c], esi
lea eax, [ebx - 0x10]
mov byte [esp + 0x378], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40812a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x378], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40814e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, 8
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x11c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407e60
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x40825f
mov esi, dword [esp + 0x34]
add eax, esi
cmp esi, eax
jbe 0x408190
call fcn.0043a94b
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x50], esi
lea esi, [esp + 0x4c]
mov dword [esp + 0x4c], edx
call fcn.00409e30
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0xec]
call fcn.004091e0
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x108]
call fcn.004091e0
push 4
mov eax, 0x5192d8
lea ecx, [esp + 0xe8]
call fcn.00409500
cmp dword [esp + 0x38], ebp
je 0x408226
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx + eax*4]
cmp dword [esi + 0x18], edi
jb 0x4081f8
mov edx, dword [esi + 4]
push edx
call fcn.0040b651
add esp, 4
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
mov word [esi + 4], ax
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x34], eax
cmp dword [esp + 0x30], eax
ja 0x40821b
mov dword [esp + 0x34], ebp
sub dword [esp + 0x38], 1
jne 0x408226
mov dword [esp + 0x34], ebp
mov eax, dword [esp + 0xe8]
cmp dword [esp + 0xfc], edi
jae 0x40823d
lea eax, [esp + 0xe8]
lea ecx, [esp + 0x11c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x40], eax
jmp 0x407e60
push 0x80004005
call fcn.00404ef0
lea esi, [esp + 0x1c]
call fcn.00409290
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040b651
add esp, 4
cmp dword [esp + 0x118], edi
jb 0x40828e
mov eax, dword [esp + 0x104]
push eax
call fcn.0040b651
add esp, 4
xor ecx, ecx
mov dword [esp + 0x118], 7
mov dword [esp + 0x114], ebp
mov word [esp + 0x104], cx
cmp dword [esp + 0xfc], edi
jb 0x4082c3
mov edx, dword [esp + 0xe8]
push edx
call fcn.0040b651
add esp, 4
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x370]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.00431c7a
add esp, 0x368
ret