Function at 0x40c220
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x468a16
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x26c], eax
push ebx
push esi
push edi
mov eax, dword [0x4896a0]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x290]
push str.ShellOpenDoc_Start_
call fcn.00412580
push 0x105
xor ebx, ebx
push ebx
push 0x48bff8
call fcn.00449a70
add esp, 0x10
push 0x104
push esi
push 0x48bff8
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [edi + 0x47b], bl
je 0x40c2b3
push esi
push ebx
call fcn.00409e30
xor ecx, ecx
add esp, 8
test eax, eax
setg cl
mov eax, ecx
jmp 0x40c4c2
push 0x104
lea edx, [esp + 0x179]
push ebx
push edx
mov byte [esp + 0x180], bl
call fcn.00449a70
push 0x104
lea eax, [esp + 0x7d]
push ebx
push eax
mov byte [esp + 0x84], bl
call fcn.00449a70
add esp, 0x18
push esi
lea ecx, [esp + 0x178]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
mov dword [esp + 0x20], ebx
call fcn.00403c70
lea ecx, [esp + 0x20]
call fcn.0040f540
lea edx, [esp + 0x18]
push edx
push ebx
lea eax, [esp + 0x17c]
push eax
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x298], ebx
call fcn.0040ebc0
test eax, eax
jne 0x40c365
push esi
push ebx
call fcn.00409e30
xor edx, edx
add esp, 8
test eax, eax
setg dl
lea ecx, [esp + 0x1c]
mov dword [esp + 0x288], 0xffffffff
mov esi, edx
call fcn.0040e300
mov eax, esi
jmp 0x40c4c2
lea eax, [esp + 0x6c]
push eax
mov ecx, edi
call fcn.0040b800
test eax, eax
jne 0x40c412
push 1
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x48c1b8
call fcn.0041aa20
mov esi, eax
push 0x31
lea edx, [esp + 0x14]
push edx
mov ecx, 0x48c1b8
mov byte [esp + 0x290], 1
call fcn.0041aa20
mov esi, dword [esi]
mov eax, dword [eax]
push 0x10
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x288], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x6c]
push ecx
push 0x46e6c8
call fcn.00412580
add esp, 8
jmp 0x40c4ac
push 0x3c
lea edx, [esp + 0x34]
push ebx
push edx
call fcn.00449a70
add esp, 0xc
lea edx, [esp + 0x30]
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x174]
push edx
mov dword [esp + 0x34], 0x3c
mov dword [esp + 0x38], 0x40
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], str.open
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], 0x46dd00
mov dword [esp + 0x50], 3
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40c49f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x288], 0xffffffff
call fcn.0040e300
mov eax, 1
jmp 0x40c4c2
push str.ShellOpenFunction_Finish_
call fcn.00412580
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x288], 0xffffffff
call fcn.0040e300
xor eax, eax
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.00449ba6
add esp, 0x27c
ret 4