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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d3fd
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x431f1c]
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]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xc8], edi
cmp dword [esi + 0x10], ebx
je 0x4040d4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x403c9e
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4040d4
xor eax, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov ecx, dword [esi + 0x14]
mov edx, esi
mov dword [ebp - 4], eax
cmp ecx, 8
jb 0x403ccc
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x403cfb
mov ecx, eax
mov eax, edx
lea ecx, [ecx]
cmp word [eax], 0x20
je 0x403dbe
add eax, 2
sub ecx, 1
jne 0x403ce0
mov ecx, dword [esi + 0x14]
mov eax, dword [ebp - 0xc4]
lea edx, [ebp - 0x40]
cmp edx, esi
je 0x403d13
cmp ecx, 8
jb 0x403d09
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00402690
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
xor eax, eax
mov byte [ebp - 4], 5
mov word [ebp - 0x28], ax
or ebx, 0x20
mov dword [ebp - 0x18], 0
lea eax, [esi + 1]
mov dword [ebp - 0x14], 7
push eax
mov dword [ebp - 0xbc], ebx
call fcn.00402f90
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push esi
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.00402510
push 1
push 0x41e4cc
lea ecx, [ebp - 0x28]
call fcn.00402510
push dword [ebp - 0xc0]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00403930
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x403f72
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403f68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4040f2
jmp 0x403f68
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x403cf2
push 0x41e5b8
lea ecx, [ebp - 0x70]
call fcn.00401520
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push eax
push esi
call fcn.004042c0
add esp, 8
test al, al
je 0x403e14
push esi
lea ecx, [ebp - 0xb8]
call fcn.00401480
mov ecx, eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
mov ebx, 1
cmp eax, ecx
jne 0x403ea3
jmp 0x403ed9
push 0x41e5b8
lea ecx, [ebp - 0xa0]
call fcn.00401520
push esi
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 4], 3
push eax
mov dword [ebp - 0xbc], 2
call fcn.00403930
add esp, 0xc
push 1
push 0x41e5b8
mov ecx, eax
mov dword [ebp - 4], 4
mov dword [ebp - 0xbc], 6
call fcn.00402510
mov edx, eax
mov ecx, dword [edx]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x28]
mov dword [edx + 0x10], 0
lea ebx, [eax + 0x1e]
mov dword [edx + 0x14], 7
mov word [edx], ax
mov eax, dword [ecx]
mov dword [ebp - 0x40], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
test bl, 8
je 0x403f1b
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffff7
cmp edx, 8
jb 0x403f1b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403f11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4040f7
push edx
push ecx
call fcn.0040cf06
add esp, 8
test bl, 4
je 0x403f2e
lea ecx, [ebp - 0x88]
and ebx, 0xfffffffb
call fcn.00401a00
test bl, 2
je 0x403f41
lea ecx, [ebp - 0xa0]
and ebx, 0xfffffffd
call fcn.00401a00
mov dword [ebp - 4], 1
test bl, 1
je 0x403f5b
lea ecx, [ebp - 0xb8]
and ebx, 0xfffffffe
call fcn.00401a00
lea ecx, [ebp - 0x70]
call fcn.00401a00
jmp 0x403d13
push edx
push ecx
call fcn.0040cf06
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
xor esi, esi
mov eax, dword [ebp - 0x48]
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x14], 7
add eax, 1
mov dword [ebp - 0xc0], eax
je 0x403fce
cmp eax, 0x7fffffff
ja 0x4040fc
push eax
lea ecx, [ebp - 0x64]
call fcn.004024b0
mov ecx, dword [ebp - 0xc0]
mov esi, eax
xor eax, eax
mov edi, esi
lea ebx, [esi + ecx*2]
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0xc8]
mov ecx, ebx
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
sub ecx, esi
push eax
sar ecx, 1
push ecx
push esi
call fcn.00411245
xor eax, eax
mov dword [ebp - 0x11c], 0x44
push 0x40
push eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x118]
push eax
call fcn.0040f0d0
add esp, 0x18
cmp dword [edi + 0x10], 0
jne 0x404025
xor edi, edi
jmp 0x40402d
cmp dword [edi + 0x14], 8
jb 0x40402d
mov edi, dword [edi]
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x11c]
push eax
push edi
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40405f
push dword [ebp - 0xd4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0xd8]
test esi, esi
je 0x404092
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffe
cmp ebx, 0x1000
jb 0x404088
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404101
push ebx
push esi
call fcn.0040cf06
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.00401a00
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4040d0
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4040c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404101
push edx
push ecx
call fcn.0040cf06
add esp, 8
mov eax, edi
jmp 0x4040d6
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.0040d173
mov esp, ebp
pop ebp
ret
call fcn.00410b2a
call fcn.00410b2a
call fcn.00402490
call fcn.00410b2a
int3