Function at 0x40cac0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d49f5
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x693f30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
call fcn.00409450
mov ecx, eax
test ecx, ecx
je 0x40ccfb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 1
push dword [esi + 0x408]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
test edx, edx
jne 0x40cb38
xor ecx, ecx
jmp 0x40cb4f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cb40
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.0040f140
mov esi, dword [ebp - 0x34]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x40ccf1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40cb84
push edi
lea ecx, [ebp - 0x34]
call fcn.0040f0e0
mov esi, dword [ebp - 0x34]
lea eax, [edi + 1]
push eax
push esi
call fcn.005b486e
lea eax, [esi - 0x10]
add esp, 8
mov dword [ebp - 0x44], eax
cmp edi, dword [eax + 8]
jg 0x40ccf1
mov dword [eax + 4], edi
xor eax, eax
mov word [esi + edi*2], ax
mov dword [ebx], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x2c], 0
mov ecx, edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cbd1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.004066d0
mov byte [ebp - 4], 2
lea ebx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
jb 0x40cc06
lea eax, [edi + edx*2]
mov esi, edi
mov ebx, edi
jmp 0x40cc0f
lea eax, [ebp - 0x2c]
lea eax, [eax + edx*2]
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x38], eax
cmp esi, eax
je 0x40cc3d
sub ebx, esi
mov edi, eax
nop word [eax + eax]
movzx eax, word [esi]
push eax
call fcn.005ad183
mov word [ebx + esi], ax
add esp, 4
add esi, 2
cmp esi, edi
jne 0x40cc20
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
cmp ebx, 8
push 0xe
cmovae ecx, edi
setae byte [ebp - 0x2d]
push str._noshowcrashui
push ecx
call fcn.0040fc30
add esp, 0xc
cmp eax, 0xffffffff
je 0x40cc6b
mov eax, dword [ebp - 0x3c]
mov dword [eax], 0
cmp byte [ebp - 0x2d], 0
mov eax, dword [ebp - 0x40]
mov dword [eax], 1
je 0x40cca5
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40cc9b
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cd05
push ecx
push edi
call fcn.005a242d
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov word [ebp - 0x2c], ax
or eax, 0xffffffff
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ccd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 - 0x14]
xor ecx, ebp
call fcn.005a1c7e
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.00409320
push 0x80004005
call fcn.00409320
call fcn.005a7b3f
int3