Function at 0x40f8a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5848e6
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x5d406c]
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 - 0x564], esi
mov dword [ebp - 0x560], ebx
mov dword [ebp - 0x1ac], 7
mov dword [ebp - 0x1b0], ebx
mov word [ebp - 0x1c0], ax
cmp word [esi], ax
jne 0x40f901
xor ecx, ecx
jmp 0x40f915
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f906
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x1c0]
call fcn.00405d60
lea edx, [ebp - 0x1c0]
lea ecx, [ebp - 0x208]
call fcn.0044dc90
mov eax, dword [ebp - 0x1ac]
cmp eax, 8
jb 0x40f951
inc eax
lea ecx, [ebp - 0x1c0]
push eax
push dword [ebp - 0x1c0]
call fcn.00407050
push 1
push 0
lea eax, [ebp - 0x55c]
mov byte [ebp - 0x55c], 0x20
push eax
lea ecx, [ebp - 0x208]
call fcn.004131f0
cmp dword [ebp - 0x1f8], ebx
je 0x40f9ec
push 1
push 0
lea eax, [ebp - 0x55c]
mov byte [ebp - 0x55c], 0x20
push eax
lea ecx, [ebp - 0x208]
call fcn.004131f0
cmp eax, 0xffffffff
jne 0x40f9ec
cmp dword [ebp - 0x1f4], 0x10
lea eax, [ebp - 0x208]
cmovae eax, dword [ebp - 0x208]
cmp byte [eax], 0x2d
je 0x40f9ec
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x130]
call fcn.0044dd70
push eax
lea ecx, [ebp - 0x208]
call fcn.00412560
mov eax, dword [ebp - 0x11c]
cmp eax, 0x10
jb 0x40f9ec
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.004067d0
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x130]
call fcn.0044dcf0
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x40fa07
mov ecx, dword [ecx]
mov edx, esi
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x40fa10
mov eax, dword [ebp - 0x11c]
cmp eax, 8
jb 0x40fa3f
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.00407050
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 3
call fcn.004a5cf3
add esp, 4
lea ecx, [ebp - 0x598]
call fcn.00425300
mov esi, dword [0x79d0c0]
mov dword [ebp - 0x164], esi
test esi, esi
jne 0x40fae2
push 0x20
call fcn.004a0122
mov ecx, eax
call fcn.0041d7f0
mov dword [0x79d0c0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.004053a0
lea eax, [ebp - 0x2f8]
push eax
call fcn.0041e120
mov eax, dword [ebp - 0x2e4]
cmp eax, 8
jb 0x40fabd
inc eax
lea ecx, [ebp - 0x2f8]
push eax
push dword [ebp - 0x2f8]
call fcn.00407050
mov esi, dword [0x79d0c0]
xor eax, eax
mov dword [ebp - 0x2e4], 7
mov dword [ebp - 0x2e8], ebx
mov word [ebp - 0x2f8], ax
mov dword [ebp - 0x164], esi
lea ecx, [ebp - 0x220]
call fcn.004563e0
cmp dword [ebp - 0x210], ebx
je 0x40fb2e
mov ebx, 1
lea ecx, [ebp - 0x130]
push ebx
mov edx, 0x5ba63c
mov dword [ebp - 0x560], ebx
call fcn.00404050
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40fb1c
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.0041dcb0
mov byte [ebp - 0x55c], bl
test al, al
je 0x40fb35
mov byte [ebp - 0x55c], 0
test bl, 1
je 0x40fb61
mov eax, dword [ebp - 0x11c]
and ebx, 0xfffffffe
mov dword [ebp - 0x560], ebx
cmp eax, 0x10
jb 0x40fb61
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.004067d0
cmp byte [ebp - 0x55c], 0
je 0x40fc7e
push 1
mov edx, 0x5ba63c
lea ecx, [ebp - 0x130]
call fcn.00404050
mov edx, eax
add esp, 4
cmp dword [edx + 0x14], 0x10
jb 0x40fb8d
mov edx, dword [edx]
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
cmp byte [edx], 0
jne 0x40fbb1
xor ecx, ecx
jmp 0x40fbbf
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fbb6
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x1c0]
call fcn.00406180
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x1a8]
call fcn.0044dcf0
push eax
lea eax, [ebp - 0x1c0]
mov ecx, esi
push eax
call fcn.0041df20
mov eax, dword [ebp - 0x194]
cmp eax, 8
jb 0x40fc0a
inc eax
lea ecx, [ebp - 0x1a8]
push eax
push dword [ebp - 0x1a8]
call fcn.00407050
xor eax, eax
mov dword [ebp - 0x194], 7
mov word [ebp - 0x1a8], ax
mov eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x198], 0
cmp eax, 0x10
jb 0x40fc45
inc eax
lea ecx, [ebp - 0x1c0]
push eax
push dword [ebp - 0x1c0]
call fcn.004067d0
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
cmp eax, 0x10
jb 0x40fc7e
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.004067d0
push esi
lea ecx, [ebp - 0x1b4]
call fcn.004120b0
xor eax, eax
mov dword [ebp - 0x1c4], 7
mov word [ebp - 0x1d8], ax
mov dword [ebp - 0x150], eax
mov word [ebp - 0x160], ax
lea eax, [ebp - 0x160]
push eax
push 7
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x14c], 7
call fcn.00426900
add esp, 8
lea eax, [ebp - 0x130]
lea ecx, [ebp - 0x160]
push eax
call fcn.0041b830
lea ecx, [ebp - 0x1d8]
cmp ecx, eax
je 0x40fcf5
push 0xffffffffffffffff
push 0
push eax
call fcn.00405e60
mov eax, dword [ebp - 0x11c]
cmp eax, 8
jb 0x40fd13
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.00407050
push 0
lea edx, [ebp - 0x1d8]
mov dword [ebp - 0x1dc], 0xf
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x1e0], 0
mov byte [ebp - 0x1f0], 0
call fcn.0041aa10
add esp, 4
lea edx, [ebp - 0x1f0]
lea ecx, [ebp - 0x250]
call fcn.0040f3e0
mov ecx, dword [ebp - 0x23c]
mov byte [ebp - 0x55c], al
cmp ecx, 0x10
jb 0x40fd7f
inc ecx
push ecx
push dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
call fcn.004067d0
mov al, byte [ebp - 0x55c]
test al, al
je 0x40fe2e
cmp dword [ebp - 0x1dc], 0x10
lea eax, [ebp - 0x1f0]
push 0
cmovae eax, dword [ebp - 0x1f0]
lea edx, [ebp - 0x138]
mov dword [ebp - 0x138], eax
lea ecx, [ebp - 0x400]
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x134], eax
call fcn.0041a930
mov eax, dword [ebp - 0x1c4]
add esp, 4
cmp eax, 8
jb 0x40fde1
inc eax
lea ecx, [ebp - 0x1d8]
push eax
push dword [ebp - 0x1d8]
call fcn.00407050
xor eax, eax
mov dword [ebp - 0x1c4], 7
mov word [ebp - 0x1d8], ax
lea ecx, [ebp - 0x1d8]
lea eax, [ebp - 0x400]
mov dword [ebp - 0x1c8], 0
push eax
call fcn.004060b0
mov eax, dword [ebp - 0x3ec]
cmp eax, 8
jb 0x40fe2e
inc eax
lea ecx, [ebp - 0x400]
push eax
push dword [ebp - 0x400]
call fcn.00407050
lea ecx, [ebp - 0x1d8]
call fcn.0040f260
call fcn.00453c60
mov esi, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x40fe4c
mov edx, dword [ecx]
push 1
call dword [edx]
push 8
call fcn.004a0122
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [eax], 0x5c2ae8
mov dword [ebp - 4], 0xffffffff
mov dword [eax], 0x5c2ad8
mov dword [eax + 4], ecx
mov dword [esi], eax
call fcn.004595b0
push ecx
call fcn.00458ab0
test al, al
jne 0x410039
mov eax, dword [ebp - 0x1dc]
cmp eax, 0x10
jb 0x40fea9
inc eax
lea ecx, [ebp - 0x1f0]
push eax
push dword [ebp - 0x1f0]
call fcn.004067d0
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x1dc], 0xf
mov dword [ebp - 0x1e0], 0
mov byte [ebp - 0x1f0], 0
cmp eax, 8
jb 0x40fee2
inc eax
lea ecx, [ebp - 0x160]
push eax
push dword [ebp - 0x160]
call fcn.00407050
xor eax, eax
mov dword [ebp - 0x14c], 7
mov word [ebp - 0x160], ax
mov eax, dword [ebp - 0x1c4]
mov dword [ebp - 0x150], 0
cmp eax, 8
jb 0x40ff1d
inc eax
lea ecx, [ebp - 0x1d8]
push eax
push dword [ebp - 0x1d8]
call fcn.00407050
mov esi, dword [ebp - 0x1b4]
xor eax, eax
mov dword [ebp - 0x1c4], 7
mov dword [ebp - 0x1c8], 0
mov word [ebp - 0x1d8], ax
test esi, esi
je 0x40ff80
push dword [ebp - 0x564]
lea eax, [ebp - 0x1b4]
push eax
push dword [ebp - 0x1b0]
push esi
call fcn.0040af10
mov ecx, dword [ebp - 0x1ac]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0x10
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040aaf0
mov eax, dword [ebp - 0x20c]
cmp eax, 0x10
jb 0x40ff9e
inc eax
lea ecx, [ebp - 0x220]
push eax
push dword [ebp - 0x220]
call fcn.004067d0
cmp dword [0x79d0e8], 0
mov dword [ebp - 0x20c], 0xf
mov dword [ebp - 0x210], 0
mov byte [ebp - 0x220], 0
jne 0x40ffd3
test bl, bl
jns 0x40ffe3
lea ecx, [ebp - 0x648]
call fcn.004215c0
jmp 0x40ffe3
call fcn.00425470
mov eax, dword [ebp - 0x56c]
mov dword [0x79d0e8], eax
lea ecx, [ebp - 0x580]
call fcn.00425580
push 1
push dword [ebp - 0x580]
call fcn.00424260
lea eax, [ebp - 0x598]
mov dword [ebp - 0x580], 0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [ebp - 0x1f4]
cmp eax, 0x10
jb 0x411b53
inc eax
lea ecx, [ebp - 0x208]
push eax
push dword [ebp - 0x208]
call fcn.004067d0
jmp 0x411b53
xor eax, eax
mov dword [ebp - 0x224], 7
push 0x10
mov edx, 0x5ba600
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x130]
mov word [ebp - 0x238], ax
call fcn.00404050
mov ecx, eax
add esp, 4
cmp dword [ecx + 0x14], 0x10
jb 0x410075
mov ecx, dword [ecx]
mov dword [ebp - 0x138], ecx
test ecx, ecx
jne 0x410087
mov dword [ebp - 0x134], ecx
jmp 0x4100af
cmp byte [ecx], 0
jne 0x410098
mov dword [ebp - 0x134], 0
jmp 0x4100af
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4100a0
sub ecx, edx
mov dword [ebp - 0x134], ecx
push 0
lea edx, [ebp - 0x138]
lea ecx, [ebp - 0x1a8]
call fcn.0041a930
add esp, 4
call fcn.00450dd0
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x1a8]
push ecx
mov ecx, eax
call fcn.00450710
mov eax, dword [ebp - 0x194]
cmp eax, 8
jb 0x4100fd
inc eax
lea ecx, [ebp - 0x1a8]
push eax
push dword [ebp - 0x1a8]
call fcn.00407050
xor eax, eax
mov dword [ebp - 0x194], 7
mov word [ebp - 0x1a8], ax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x198], 0
cmp eax, 0x10
jb 0x410138
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.004067d0
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x134], 4
test eax, eax
je 0x410172
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
lea edx, [ebp - 0x134]
cmovae ecx, dword [ebp - 0x238]
push edx
lea edx, [ecx + eax*2]
call fcn.004225f0
add esp, 4
call 0x410177
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.004a0111
mov esp, ebp
pop ebp
ret 0x10