Function at 0x410190
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585d16
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x5d4074]
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 0x4101f1
xor ecx, ecx
jmp 0x410205
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4101f6
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x1c0]
call fcn.00406650
lea edx, [ebp - 0x1c0]
lea ecx, [ebp - 0x208]
call fcn.0044e980
mov eax, dword [ebp - 0x1ac]
cmp eax, 8
jb 0x410241
inc eax
lea ecx, [ebp - 0x1c0]
push eax
push dword [ebp - 0x1c0]
call fcn.00407940
push 1
push 0
lea eax, [ebp - 0x55c]
mov byte [ebp - 0x55c], 0x20
push eax
lea ecx, [ebp - 0x208]
call fcn.00413ae0
cmp dword [ebp - 0x1f8], ebx
je 0x4102dc
push 1
push 0
lea eax, [ebp - 0x55c]
mov byte [ebp - 0x55c], 0x20
push eax
lea ecx, [ebp - 0x208]
call fcn.00413ae0
cmp eax, 0xffffffff
jne 0x4102dc
cmp dword [ebp - 0x1f4], 0x10
lea eax, [ebp - 0x208]
cmovae eax, dword [ebp - 0x208]
cmp byte [eax], 0x2d
je 0x4102dc
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x130]
call fcn.0044ea60
push eax
lea ecx, [ebp - 0x208]
call fcn.00412e50
mov eax, dword [ebp - 0x11c]
cmp eax, 0x10
jb 0x4102dc
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.004070c0
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x130]
call fcn.0044e9e0
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x4102f7
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 0x410300
mov eax, dword [ebp - 0x11c]
cmp eax, 8
jb 0x41032f
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.00407940
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 3
call fcn.004a68a3
add esp, 4
lea ecx, [ebp - 0x598]
call fcn.00425e10
mov esi, dword [0x79fbe8]
mov dword [ebp - 0x164], esi
test esi, esi
jne 0x4103d2
push 0x20
call fcn.004a0c90
mov ecx, eax
call fcn.0041e0e0
mov dword [0x79fbe8], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.00405cc0
lea eax, [ebp - 0x2f8]
push eax
call fcn.0041ea10
mov eax, dword [ebp - 0x2e4]
cmp eax, 8
jb 0x4103ad
inc eax
lea ecx, [ebp - 0x2f8]
push eax
push dword [ebp - 0x2f8]
call fcn.00407940
mov esi, dword [0x79fbe8]
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.004570d0
cmp dword [ebp - 0x210], ebx
je 0x41041e
mov ebx, 1
lea ecx, [ebp - 0x130]
push ebx
mov edx, 0x5ba29c
mov dword [ebp - 0x560], ebx
call fcn.00404470
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x41040c
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.0041e5a0
mov byte [ebp - 0x55c], bl
test al, al
je 0x410425
mov byte [ebp - 0x55c], 0
test bl, 1
je 0x410451
mov eax, dword [ebp - 0x11c]
and ebx, 0xfffffffe
mov dword [ebp - 0x560], ebx
cmp eax, 0x10
jb 0x410451
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.004070c0
cmp byte [ebp - 0x55c], 0
je 0x41056e
push 1
mov edx, 0x5ba29c
lea ecx, [ebp - 0x130]
call fcn.00404470
mov edx, eax
add esp, 4
cmp dword [edx + 0x14], 0x10
jb 0x41047d
mov edx, dword [edx]
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
cmp byte [edx], 0
jne 0x4104a1
xor ecx, ecx
jmp 0x4104af
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4104a6
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x1c0]
call fcn.00406a70
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x1a8]
call fcn.0044e9e0
push eax
lea eax, [ebp - 0x1c0]
mov ecx, esi
push eax
call fcn.0041e810
mov eax, dword [ebp - 0x194]
cmp eax, 8
jb 0x4104fa
inc eax
lea ecx, [ebp - 0x1a8]
push eax
push dword [ebp - 0x1a8]
call fcn.00407940
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 0x410535
inc eax
lea ecx, [ebp - 0x1c0]
push eax
push dword [ebp - 0x1c0]
call fcn.004070c0
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
cmp eax, 0x10
jb 0x41056e
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.004070c0
push esi
lea ecx, [ebp - 0x1b4]
call fcn.004129a0
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.00427360
add esp, 8
lea eax, [ebp - 0x130]
lea ecx, [ebp - 0x160]
push eax
call fcn.0041c120
lea ecx, [ebp - 0x1d8]
cmp ecx, eax
je 0x4105e5
push 0xffffffffffffffff
push 0
push eax
call fcn.00406750
mov eax, dword [ebp - 0x11c]
cmp eax, 8
jb 0x410603
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.00407940
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.0041b300
add esp, 4
lea edx, [ebp - 0x1f0]
lea ecx, [ebp - 0x250]
call fcn.0040fce0
mov ecx, dword [ebp - 0x23c]
mov byte [ebp - 0x55c], al
cmp ecx, 0x10
jb 0x41066f
inc ecx
push ecx
push dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
call fcn.004070c0
mov al, byte [ebp - 0x55c]
test al, al
je 0x41071e
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.0041b220
mov eax, dword [ebp - 0x1c4]
add esp, 4
cmp eax, 8
jb 0x4106d1
inc eax
lea ecx, [ebp - 0x1d8]
push eax
push dword [ebp - 0x1d8]
call fcn.00407940
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.004069a0
mov eax, dword [ebp - 0x3ec]
cmp eax, 8
jb 0x41071e
inc eax
lea ecx, [ebp - 0x400]
push eax
push dword [ebp - 0x400]
call fcn.00407940
lea ecx, [ebp - 0x1d8]
call fcn.0040fb60
call fcn.00454950
mov esi, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x41073c
mov edx, dword [ecx]
push 1
call dword [edx]
push 8
call fcn.004a0c90
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [eax], 0x5c2728
mov dword [ebp - 4], 0xffffffff
mov dword [eax], 0x5c2718
mov dword [eax + 4], ecx
mov dword [esi], eax
call fcn.0045a2b0
push ecx
call fcn.004597b0
test al, al
jne 0x410929
mov eax, dword [ebp - 0x1dc]
cmp eax, 0x10
jb 0x410799
inc eax
lea ecx, [ebp - 0x1f0]
push eax
push dword [ebp - 0x1f0]
call fcn.004070c0
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x1dc], 0xf
mov dword [ebp - 0x1e0], 0
mov byte [ebp - 0x1f0], 0
cmp eax, 8
jb 0x4107d2
inc eax
lea ecx, [ebp - 0x160]
push eax
push dword [ebp - 0x160]
call fcn.00407940
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 0x41080d
inc eax
lea ecx, [ebp - 0x1d8]
push eax
push dword [ebp - 0x1d8]
call fcn.00407940
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 0x410870
push dword [ebp - 0x564]
lea eax, [ebp - 0x1b4]
push eax
push dword [ebp - 0x1b0]
push esi
call fcn.0040b810
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.0040b3f0
mov eax, dword [ebp - 0x20c]
cmp eax, 0x10
jb 0x41088e
inc eax
lea ecx, [ebp - 0x220]
push eax
push dword [ebp - 0x220]
call fcn.004070c0
cmp dword [0x79fc10], 0
mov dword [ebp - 0x20c], 0xf
mov dword [ebp - 0x210], 0
mov byte [ebp - 0x220], 0
jne 0x4108c3
test bl, bl
jns 0x4108d3
lea ecx, [ebp - 0x648]
call fcn.00421f70
jmp 0x4108d3
call fcn.00425f80
mov eax, dword [ebp - 0x56c]
mov dword [0x79fc10], eax
lea ecx, [ebp - 0x580]
call fcn.00426090
push 1
push dword [ebp - 0x580]
call fcn.00424cb0
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 0x412443
inc eax
lea ecx, [ebp - 0x208]
push eax
push dword [ebp - 0x208]
call fcn.004070c0
jmp 0x412443
xor eax, eax
mov dword [ebp - 0x224], 7
push 0x10
mov edx, 0x5ba260
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x130]
mov word [ebp - 0x238], ax
call fcn.00404470
mov ecx, eax
add esp, 4
cmp dword [ecx + 0x14], 0x10
jb 0x410965
mov ecx, dword [ecx]
mov dword [ebp - 0x138], ecx
test ecx, ecx
jne 0x410977
mov dword [ebp - 0x134], ecx
jmp 0x41099f
cmp byte [ecx], 0
jne 0x410988
mov dword [ebp - 0x134], 0
jmp 0x41099f
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410990
sub ecx, edx
mov dword [ebp - 0x134], ecx
push 0
lea edx, [ebp - 0x138]
lea ecx, [ebp - 0x1a8]
call fcn.0041b220
add esp, 4
call fcn.00451ac0
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x1a8]
push ecx
mov ecx, eax
call fcn.00451400
mov eax, dword [ebp - 0x194]
cmp eax, 8
jb 0x4109ed
inc eax
lea ecx, [ebp - 0x1a8]
push eax
push dword [ebp - 0x1a8]
call fcn.00407940
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 0x410a28
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.004070c0
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x134], 4
test eax, eax
je 0x410a62
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.00423010
add esp, 4
call 0x410a67
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.004a0c7f
mov esp, ebp
pop ebp
ret 0x10