Function at 0x40ec80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da8a6
mov eax, dword fs:[0]
push eax
sub esp, 0x854
mov eax, dword [0x64106c]
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 + 0x10]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x76c], esi
mov dword [ebp - 0x768], ebx
mov dword [ebp - 0x4ac], 7
mov dword [ebp - 0x4b0], ebx
mov word [ebp - 0x4c0], ax
cmp word [esi], ax
jne 0x40ece1
xor ecx, ecx
jmp 0x40ecf5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ece6
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x4c0]
call fcn.00405a70
lea edx, [ebp - 0x4c0]
lea ecx, [ebp - 0x4f0]
call fcn.0044b680
mov eax, dword [ebp - 0x4ac]
cmp eax, 8
jb 0x40ed31
inc eax
lea ecx, [ebp - 0x4c0]
push eax
push dword [ebp - 0x4c0]
call fcn.00406d90
push 1
push 0
lea eax, [ebp - 0x764]
mov byte [ebp - 0x764], 0x20
push eax
lea ecx, [ebp - 0x4f0]
call fcn.00411e70
cmp dword [ebp - 0x4e0], ebx
je 0x40edcc
push 1
push 0
lea eax, [ebp - 0x764]
mov byte [ebp - 0x764], 0x20
push eax
lea ecx, [ebp - 0x4f0]
call fcn.00411e70
cmp eax, 0xffffffff
jne 0x40edcc
cmp dword [ebp - 0x4dc], 0x10
lea eax, [ebp - 0x4f0]
cmovae eax, dword [ebp - 0x4f0]
cmp byte [eax], 0x2d
je 0x40edcc
lea edx, [ebp - 0x4f0]
lea ecx, [ebp - 0x430]
call fcn.0044b760
push eax
lea ecx, [ebp - 0x4f0]
call fcn.00411380
mov eax, dword [ebp - 0x41c]
cmp eax, 0x10
jb 0x40edcc
inc eax
lea ecx, [ebp - 0x430]
push eax
push dword [ebp - 0x430]
call fcn.004064e0
lea edx, [ebp - 0x4f0]
lea ecx, [ebp - 0x430]
call fcn.0044b6e0
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x40ede7
mov ecx, dword [ecx]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x40ede7
mov eax, dword [ebp - 0x41c]
cmp eax, 8
jb 0x40ee16
inc eax
lea ecx, [ebp - 0x430]
push eax
push dword [ebp - 0x430]
call fcn.00406d90
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea ecx, [ebp - 0x7b0]
call fcn.004232b0
mov esi, dword [0xa3c1b4]
mov dword [ebp - 0x47c], esi
test esi, esi
jne 0x40eeaf
push 0x20
call fcn.004c2244
mov ecx, eax
call fcn.0041be60
mov dword [0xa3c1b4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x5a8]
call fcn.004050d0
lea eax, [ebp - 0x5a8]
push eax
call fcn.0041c790
mov eax, dword [ebp - 0x594]
cmp eax, 8
jb 0x40ee8a
inc eax
lea ecx, [ebp - 0x5a8]
push eax
push dword [ebp - 0x5a8]
call fcn.00406d90
mov esi, dword [0xa3c1b4]
xor eax, eax
mov dword [ebp - 0x594], 7
mov dword [ebp - 0x598], ebx
mov word [ebp - 0x5a8], ax
mov dword [ebp - 0x47c], esi
lea ecx, [ebp - 0x4d8]
call fcn.004533f0
cmp dword [ebp - 0x4c8], ebx
je 0x40eefb
mov ebx, 1
lea ecx, [ebp - 0x430]
push ebx
mov edx, 0x6174cc
mov dword [ebp - 0x768], ebx
call fcn.00403e00
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40eee9
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.0041c310
mov byte [ebp - 0x764], bl
test al, al
je 0x40ef02
mov byte [ebp - 0x764], 0
test bl, 1
je 0x40ef2e
mov eax, dword [ebp - 0x41c]
and ebx, 0xfffffffe
mov dword [ebp - 0x768], ebx
cmp eax, 0x10
jb 0x40ef2e
inc eax
lea ecx, [ebp - 0x430]
push eax
push dword [ebp - 0x430]
call fcn.004064e0
cmp byte [ebp - 0x764], 0
je 0x40f04b
push 1
mov edx, 0x6174cc
lea ecx, [ebp - 0x430]
call fcn.00403e00
mov edx, eax
add esp, 4
cmp dword [edx + 0x14], 0x10
jb 0x40ef5a
mov edx, dword [edx]
mov dword [ebp - 0x4f4], 0xf
mov dword [ebp - 0x4f8], 0
mov byte [ebp - 0x508], 0
cmp byte [edx], 0
jne 0x40ef7e
xor ecx, ecx
jmp 0x40ef8c
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ef83
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x508]
call fcn.00405e90
lea edx, [ebp - 0x4d8]
lea ecx, [ebp - 0x478]
call fcn.0044b6e0
push eax
lea eax, [ebp - 0x508]
mov ecx, esi
push eax
call fcn.0041c580
mov eax, dword [ebp - 0x464]
cmp eax, 8
jb 0x40efd7
inc eax
lea ecx, [ebp - 0x478]
push eax
push dword [ebp - 0x478]
call fcn.00406d90
xor eax, eax
mov dword [ebp - 0x464], 7
mov word [ebp - 0x478], ax
mov eax, dword [ebp - 0x4f4]
mov dword [ebp - 0x468], 0
cmp eax, 0x10
jb 0x40f012
inc eax
lea ecx, [ebp - 0x508]
push eax
push dword [ebp - 0x508]
call fcn.004064e0
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x4f4], 0xf
mov dword [ebp - 0x4f8], 0
mov byte [ebp - 0x508], 0
cmp eax, 0x10
jb 0x40f04b
inc eax
lea ecx, [ebp - 0x430]
push eax
push dword [ebp - 0x430]
call fcn.004064e0
xor eax, eax
mov dword [ebp - 0x44c], 7
mov word [ebp - 0x460], ax
lea eax, [ebp - 0x460]
push eax
push 6
mov dword [ebp - 0x450], 0
call fcn.00424770
add esp, 8
mov dword [ebp - 0x77c], 0
lea eax, [ebp - 0x77c]
mov dword [ebp - 0x778], 0
lea ecx, [ebp - 0x460]
mov dword [ebp - 0x774], 0
push eax
call fcn.00419b00
mov ecx, dword [ebp - 0x778]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x77c]
sub ecx, esi
imul ecx
xor ecx, ecx
mov dword [ebp - 0x494], 7
sar edx, 2
mov eax, edx
mov word [ebp - 0x4a8], cx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x498], 0
push 0xffffffffffffffff
push ecx
lea ecx, [ebp - 0x4a8]
lea eax, [eax + eax*2]
lea eax, [eax - 3]
lea eax, [esi + eax*8]
push eax
call fcn.00405b70
call fcn.00451560
mov edi, eax
mov ecx, dword [edi]
test ecx, ecx
je 0x40f110
mov edx, dword [ecx]
push 1
call dword [edx]
push 8
call fcn.004c2244
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [eax], 0x6237ec
mov dword [ebp - 4], 0xffffffff
mov dword [eax], 0x6237dc
mov dword [eax + 4], ecx
mov dword [edi], eax
call fcn.00456070
push ecx
call fcn.004554e0
test al, al
jne 0x40f2ba
mov eax, dword [ebp - 0x494]
cmp eax, 8
jb 0x40f16d
inc eax
lea ecx, [ebp - 0x4a8]
push eax
push dword [ebp - 0x4a8]
call fcn.00406d90
xor eax, eax
mov dword [ebp - 0x494], 7
mov dword [ebp - 0x498], 0
mov word [ebp - 0x4a8], ax
test esi, esi
je 0x40f1c5
push dword [ebp - 0x76c]
mov edx, dword [ebp - 0x778]
push ecx
mov ecx, esi
call fcn.0040ab20
mov ecx, dword [ebp - 0x774]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040a780
mov eax, dword [ebp - 0x44c]
cmp eax, 8
jb 0x40f1e3
inc eax
lea ecx, [ebp - 0x460]
push eax
push dword [ebp - 0x460]
call fcn.00406d90
xor eax, eax
mov dword [ebp - 0x44c], 7
mov word [ebp - 0x460], ax
mov eax, dword [ebp - 0x4c4]
mov dword [ebp - 0x450], 0
cmp eax, 0x10
jb 0x40f21e
inc eax
lea ecx, [ebp - 0x4d8]
push eax
push dword [ebp - 0x4d8]
call fcn.004064e0
cmp dword [0xa3c1dc], 0
mov dword [ebp - 0x4c4], 0xf
mov dword [ebp - 0x4c8], 0
mov byte [ebp - 0x4d8], 0
jne 0x40f253
test bl, bl
jns 0x40f263
lea ecx, [ebp - 0x860]
call fcn.0041f840
jmp 0x40f263
call fcn.00423420
mov eax, dword [ebp - 0x784]
mov dword [0xa3c1dc], eax
lea ecx, [ebp - 0x798]
call fcn.00423530
push dword [ebp - 0x798]
call fcn.0057e960
add esp, 4
mov dword [ebp - 0x798], 0
lea eax, [ebp - 0x7b0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [ebp - 0x4dc]
cmp eax, 0x10
jb 0x410cac
inc eax
lea ecx, [ebp - 0x4f0]
push eax
push dword [ebp - 0x4f0]
call fcn.004064e0
jmp 0x410cac
call fcn.00456070
push ecx
call fcn.004555b0
test al, al
jne 0x40f3b0
mov eax, dword [ebp - 0x494]
cmp eax, 8
jb 0x40f2eb
inc eax
lea ecx, [ebp - 0x4a8]
push eax
push dword [ebp - 0x4a8]
call fcn.00406d90
xor eax, eax
mov dword [ebp - 0x494], 7
lea ecx, [ebp - 0x77c]
mov dword [ebp - 0x498], 0
mov word [ebp - 0x4a8], ax
call fcn.0040a6c0
mov eax, dword [ebp - 0x44c]
cmp eax, 8
jb 0x40f331
inc eax
lea ecx, [ebp - 0x460]
push eax
push dword [ebp - 0x460]
call fcn.00406d90
xor eax, eax
mov dword [ebp - 0x44c], 7
mov word [ebp - 0x460], ax
mov eax, dword [ebp - 0x4c4]
mov dword [ebp - 0x450], 0
cmp eax, 0x10
jb 0x40f36c
inc eax
lea ecx, [ebp - 0x4d8]
push eax
push dword [ebp - 0x4d8]
call fcn.004064e0
cmp dword [0xa3c1dc], 0
mov dword [ebp - 0x4c4], 0xf
mov dword [ebp - 0x4c8], 0
mov byte [ebp - 0x4d8], 0
jne 0x40f253
test ebx, 0x100
je 0x40f263
lea ecx, [ebp - 0x860]
call fcn.0041f840
jmp 0x40f263
sub esp, 8
call fcn.00451dc0
add esp, 4
mov ecx, eax
call fcn.004519c0
push 0x61f378
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x54c], 0xf
mov dword [ebp - 0x550], 0
mov byte [ebp - 0x560], 0
call fcn.004050d0
lea eax, [ebp - 0x560]
push eax
lea eax, [ebp - 0x478]
push eax
call fcn.0044e6f0
mov ecx, eax
call fcn.0044e460
mov eax, dword [ebp - 0x464]
cmp eax, 8
jb 0x40f425
inc eax
lea ecx, [ebp - 0x478]
push eax
push dword [ebp - 0x478]
call fcn.00406d90
push 0x61f394
lea ecx, [ebp - 0x478]
call fcn.00405250
mov edx, dword [0xa3bae4]
test edx, edx
je 0x40f470
cmp dword [ebp - 0x54c], 0x10
lea ecx, [ebp - 0x560]
lea eax, [ebp - 0x478]
cmovae ecx, dword [ebp - 0x560]
cmp dword [ebp - 0x464], 0x10
push ecx
cmovae eax, dword [ebp - 0x478]
push eax
call edx
add esp, 8
jmp 0x40f48f
test ebx, 0x200
je 0x40f48f
and ebx, 0xfffffdff
lea ecx, [ebp - 0x860]
mov dword [ebp - 0x768], ebx
call fcn.0041f840
mov eax, dword [ebp - 0x464]
cmp eax, 0x10
jb 0x40f4ad
inc eax
lea ecx, [ebp - 0x478]
push eax
push dword [ebp - 0x478]
call fcn.004064e0
sub esp, 0x18
lea edx, [ebp - 0x4a8]
mov ecx, esp
push 0
call fcn.00419560
add esp, 4
call fcn.0040dfc0
xor eax, eax
mov dword [ebp - 0x534], 7
push 0x10
mov edx, 0x617490
mov dword [ebp - 0x538], 0
lea ecx, [ebp - 0x430]
mov word [ebp - 0x548], ax
call fcn.00403e00
mov ecx, eax
add esp, 0x1c
cmp dword [ecx + 0x14], 0x10
jb 0x40f503
mov ecx, dword [ecx]
mov dword [ebp - 0x438], ecx
test ecx, ecx
jne 0x40f515
mov dword [ebp - 0x434], ecx
jmp 0x40f53f
cmp byte [ecx], 0
jne 0x40f526
mov dword [ebp - 0x434], 0
jmp 0x40f53f
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f530
sub ecx, edx
mov dword [ebp - 0x434], ecx
push 0
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x4c0]
call fcn.00419480
add esp, 4
call fcn.0044e6f0
lea ecx, [ebp - 0x548]
push ecx
lea ecx, [ebp - 0x4c0]
push ecx
mov ecx, eax
call fcn.0044e110
mov eax, dword [ebp - 0x4ac]
cmp eax, 8
jb 0x40f58d
inc eax
lea ecx, [ebp - 0x4c0]
push eax
push dword [ebp - 0x4c0]
call fcn.00406d90
xor eax, eax
mov dword [ebp - 0x4ac], 7
mov word [ebp - 0x4c0], ax
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x4b0], 0
cmp eax, 0x10
jb 0x40f5c8
inc eax
lea ecx, [ebp - 0x430]
push eax
push dword [ebp - 0x430]
call fcn.004064e0
mov eax, dword [ebp - 0x538]
mov dword [ebp - 0x434], 4
test eax, eax
je 0x40f602
cmp dword [ebp - 0x534], 8
lea ecx, [ebp - 0x548]
lea edx, [ebp - 0x434]
cmovae ecx, dword [ebp - 0x548]
push edx
lea edx, [ecx + eax*2]
call fcn.004207a0
add esp, 4
call 0x40f607
pop eax
add eax, 0xf
push eax
xor eax, eax
mov eax, ecx
ret
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.004c2233
mov esp, ebp
pop ebp
ret 0x10