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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d0dd
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4d506c]
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 ebx, ecx
mov dword [ebp - 0x94], ebx
cmp dword [0x4d899c], 0
je 0x40cea1
xor eax, eax
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], eax
mov word [ebp - 0x30], ax
mov byte [ebp - 4], 1
lea esi, [ebx + 0x25c]
cmp dword [0x4d89a0], 8
mov eax, 0x4d898c
cmovae eax, dword [0x4d898c]
cmp dword [esi + 0x14], 8
jb 0x40ccbf
mov ecx, dword [esi]
jmp 0x40ccc1
mov ecx, esi
push eax
push ecx
lea eax, [ebp - 0x48]
push 0x4b396c
push eax
call fcn.004196a0
add esp, 0x10
mov edi, eax
lea eax, [ebp - 0x60]
cmp eax, edi
je 0x40cd10
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x40ccf3
mov ecx, dword [ebp - 0x60]
inc edx
push 2
call fcn.004044e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x4c], 7
push edi
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], ax
call fcn.0040ddf0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x40cd2a
mov ecx, dword [ebp - 0x48]
inc edx
push 2
call fcn.004044e0
add esp, 4
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ce5a
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
push 0
cmovae eax, dword [ebp - 0x60]
push 0
push str.relatefile
push eax
push 0x4b3a18
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebx + 0x258], 0x20
jne 0x40cd94
cmp dword [0x4d89e8], 8
mov eax, 0x4d89d4
cmovae eax, dword [0x4d89d4]
cmp dword [esi + 0x14], 8
jb 0x40cd8b
mov esi, dword [esi]
push eax
push esi
push 0x4b3a24
jmp 0x40cdb6
cmp dword [0x4d88c8], 8
mov eax, 0x4d88b4
cmovae eax, dword [0x4d88b4]
cmp dword [esi + 0x14], 8
jb 0x40cdaf
mov esi, dword [esi]
push eax
push esi
push str.regdll_s_s
lea eax, [ebp - 0x48]
push eax
call fcn.004196a0
add esp, 0x10
lea ecx, [ebp - 0x30]
push eax
call fcn.0040d730
lea ecx, [ebp - 0x48]
call fcn.004056e0
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x48]
cmovae eax, dword [ebp - 0x30]
push eax
call fcn.00405720
mov byte [ebp - 4], 3
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 8
lea ecx, [ebp - 0x90]
cmovae eax, dword [ebp - 0x60]
push eax
call fcn.00405720
push ecx
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x90]
call fcn.00418ae0
mov edx, dword [ebp - 0x7c]
add esp, 4
cmp edx, 8
jb 0x40ce2d
mov ecx, dword [ebp - 0x90]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov edx, dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
cmp edx, 8
jb 0x40ce5a
mov ecx, dword [ebp - 0x48]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x40ce70
mov ecx, dword [ebp - 0x30]
inc edx
push 2
call fcn.004044e0
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x40cea1
mov ecx, dword [ebp - 0x60]
inc edx
push 2
call fcn.004044e0
add esp, 4
cmp dword [0x4d8984], 0
je 0x40cf95
cmp dword [0x4d8988], 8
lea eax, [ebx + 0x25c]
mov ecx, 0x4d8974
cmovae ecx, dword [0x4d8974]
cmp dword [eax + 0x14], 8
jb 0x40cecf
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x78]
push 0x4b3a54
push eax
call fcn.004196a0
add esp, 0x10
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x48]
cmp dword [0x4d8940], 8
mov eax, 0x4d892c
cmovae eax, dword [0x4d892c]
push eax
call fcn.00405720
mov byte [ebp - 4], 5
lea eax, [ebp - 0x78]
cmp dword [ebp - 0x64], 8
lea ecx, [ebp - 0x90]
cmovae eax, dword [ebp - 0x78]
push eax
call fcn.00405720
push ecx
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x90]
call fcn.00418ae0
mov edx, dword [ebp - 0x7c]
add esp, 4
cmp edx, 8
jb 0x40cf4b
mov ecx, dword [ebp - 0x90]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov edx, dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
cmp edx, 8
jb 0x40cf78
mov ecx, dword [ebp - 0x48]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x40cf95
mov ecx, dword [ebp - 0x78]
inc edx
push 2
call fcn.004044e0
add esp, 4
cmp dword [0x4d87ec], 0
je 0x40d1ab
cmp dword [0x4d87f0], 8
lea ecx, [ebp - 0x78]
mov esi, 0x4d87dc
mov eax, esi
cmovae eax, dword [0x4d87dc]
push eax
call fcn.00405720
mov dword [ebp - 4], 6
cmp dword [0x4d89cc], 0
je 0x40d029
cmp dword [ebx + 0x258], 0x20
jne 0x40cfe9
cmp dword [0x4d87f0], 8
cmovae esi, dword [0x4d87dc]
jmp 0x40cffc
cmp dword [0x4d89d0], 8
mov esi, 0x4d89bc
cmovae esi, dword [0x4d89bc]
cmp word [esi], 0
jne 0x40d006
xor ecx, ecx
jmp 0x40d01f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d010
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x78]
call fcn.00405bf0
cmp dword [ebp - 0x64], 8
lea edx, [ebp - 0x78]
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
cmovae edx, dword [ebp - 0x78]
push 0x4b3a60
movq qword [ebp - 0x18], xmm0
call fcn.00419730
add esp, 4
mov byte [ebp - 4], 7
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebx]
cmp esi, ebx
je 0x40d174
mov edi, dword [ebp - 0x94]
xor ecx, ecx
mov dword [ebp - 0x1c], 7
push 0xffffffffffffffff
push ecx
lea eax, [esi + 8]
mov word [ebp - 0x30], cx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
call fcn.00406500
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
cmovae ecx, dword [ebp - 0x30]
cmp dword [edi + 0x270], 8
jb 0x40d0a6
mov eax, dword [edi + 0x25c]
jmp 0x40d0ac
lea eax, [edi + 0x25c]
push ecx
push eax
lea eax, [ebp - 0x48]
push 0x4b3a64
push eax
call fcn.004196a0
add esp, 0x10
mov byte [ebp - 4], 9
lea edx, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x7c], 7
cmovae edx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
cmp word [edx], ax
jne 0x40d0ee
xor ecx, ecx
jmp 0x40d105
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d0f3
sub ecx, ebx
mov ebx, dword [ebp - 0x18]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x90]
call fcn.00405bf0
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xa
call fcn.00419dd0
mov edx, dword [ebp - 0x7c]
cmp edx, 8
jb 0x40d13a
mov ecx, dword [ebp - 0x90]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x40d150
mov ecx, dword [ebp - 0x48]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x40d16a
mov ecx, dword [ebp - 0x30]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov esi, dword [esi]
cmp esi, ebx
jne 0x40d063
lea ecx, [ebp - 0x18]
call fcn.0040e000
mov ecx, dword [ebp - 0x18]
mov edx, 1
push 0x20
call fcn.004044e0
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x40d1ab
mov ecx, dword [ebp - 0x78]
inc edx
push 2
call fcn.004044e0
add esp, 4
cmp dword [0x4d88dc], 0
je 0x40d32b
cmp dword [0x4d88e0], 8
lea ecx, [ebp - 0x18]
xorps xmm0, xmm0
mov edx, 0x4d88cc
cmovae edx, dword [0x4d88cc]
push 0x4b3a70
movq qword [ebp - 0x18], xmm0
call fcn.00419730
add esp, 4
mov dword [ebp - 4], 0xb
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebx]
cmp esi, ebx
je 0x40d311
mov edi, dword [ebp - 0x94]
nop dword [eax]
xor ecx, ecx
mov dword [ebp - 0x1c], 7
push 0xffffffffffffffff
push ecx
lea eax, [esi + 8]
mov word [ebp - 0x30], cx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
call fcn.00406500
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
cmovae ecx, dword [ebp - 0x30]
cmp dword [edi + 0x270], 8
jb 0x40d243
mov eax, dword [edi + 0x25c]
jmp 0x40d249
lea eax, [edi + 0x25c]
push ecx
push eax
lea eax, [ebp - 0x48]
push 0x4b3a74
push eax
call fcn.004196a0
add esp, 0x10
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x7c], 7
cmovae edx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
cmp word [edx], ax
jne 0x40d28b
xor ecx, ecx
jmp 0x40d2a2
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d290
sub ecx, ebx
mov ebx, dword [ebp - 0x18]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x90]
call fcn.00405bf0
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xe
call fcn.00419dd0
mov edx, dword [ebp - 0x7c]
cmp edx, 8
jb 0x40d2d7
mov ecx, dword [ebp - 0x90]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x40d2ed
mov ecx, dword [ebp - 0x48]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x40d307
mov ecx, dword [ebp - 0x30]
inc edx
push 2
call fcn.004044e0
add esp, 4
mov esi, dword [esi]
cmp esi, ebx
jne 0x40d200
lea ecx, [ebp - 0x18]
call fcn.0040e000
mov ecx, dword [ebp - 0x18]
mov edx, 1
push 0x20
call fcn.004044e0
add esp, 4
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.0049abdf
mov esp, ebp
pop ebp
ret