Function at 0x401210
Capabilities:
Accept command line arguments
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4966e0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
lea eax, [esp + 0x30]
push eax
call fcn.0041e120
xor ebx, ebx
mov dword [esp + 0x50], ebx
mov edx, dword [0x4b994c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4b994c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea edi, [ebx + 1]
mov byte [esp + 0x50], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.0041e280
lea edx, [esp + 0x28]
push edx
mov ecx, str.autorun
lea edx, [esp + 0x34]
mov byte [esp + 0x48], bl
call fcn.0041e8f0
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov esi, dword [esp + 0x3c]
je 0x4012a3
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x4012a8
call fcn.0045f752
cmp dword [esp + 0x2c], esi
jne 0x4012ea
lea edx, [esp + 0x28]
push edx
mov ecx, 0x49f8d4
lea edx, [esp + 0x34]
call fcn.0041e8f0
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
mov eax, dword [esp + 0x3c]
mov esi, eax
je 0x4012d7
lea edx, [esp + 0x38]
cmp ecx, edx
je 0x4012e0
call fcn.0045f752
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x2c], esi
jne 0x4012ea
cmp dword [eax], eax
jne 0x401307
push 7
push 0x49f8d8
lea eax, [esp + 0x24]
push eax
mov dword [0x4baa80], edi
mov dword [0x4baac0], ebx
call fcn.00401ff0
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x49f8e8
lea edx, [esp + 0x34]
call fcn.0041e8f0
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov esi, dword [esp + 0x3c]
je 0x40132e
lea edx, [esp + 0x38]
cmp eax, edx
je 0x401333
call fcn.0045f752
cmp dword [esp + 0x2c], esi
je 0x401350
push 9
push str._standard
lea eax, [esp + 0x24]
push eax
mov dword [0x4baa94], ebx
call fcn.00401ff0
lea ecx, [esp + 0x28]
push ecx
mov ecx, str.fast
lea edx, [esp + 0x34]
call fcn.0041e8f0
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov esi, dword [esp + 0x3c]
je 0x401377
lea edx, [esp + 0x38]
cmp eax, edx
je 0x40137c
call fcn.0045f752
cmp dword [esp + 0x2c], esi
je 0x401399
push 5
push str._fast
lea eax, [esp + 0x24]
push eax
mov dword [0x4baac0], ebx
call fcn.00401ff0
lea ecx, [esp + 0x28]
push ecx
mov ecx, str.clean
lea edx, [esp + 0x34]
call fcn.0041e8f0
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov esi, dword [esp + 0x3c]
je 0x4013c0
lea edx, [esp + 0x38]
cmp eax, edx
je 0x4013c5
call fcn.0045f752
cmp dword [esp + 0x2c], esi
je 0x4013e2
push 6
push str._clean
lea eax, [esp + 0x24]
push eax
mov dword [0x4baaa0], edi
call fcn.00401ff0
lea ecx, [esp + 0x28]
push ecx
mov ecx, str.continue
lea edx, [esp + 0x34]
call fcn.0041e8f0
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov esi, dword [esp + 0x3c]
je 0x401409
lea edx, [esp + 0x38]
cmp eax, edx
je 0x40140e
call fcn.0045f752
cmp dword [esp + 0x2c], esi
je 0x401431
push 9
push str._continue
lea eax, [esp + 0x24]
push eax
mov dword [0x4baac0], edi
mov dword [0x4baabc], edi
call fcn.00401ff0
lea ecx, [esp + 0x28]
push ecx
mov ecx, str.skipcs3
lea edx, [esp + 0x34]
call fcn.0041e8f0
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov esi, dword [esp + 0x3c]
je 0x401458
lea edx, [esp + 0x38]
cmp eax, edx
je 0x40145d
call fcn.0045f752
cmp dword [esp + 0x2c], esi
je 0x40147a
push 8
push str._skipcs3
lea eax, [esp + 0x24]
push eax
mov dword [0x4baac0], edi
call fcn.00401ff0
lea ecx, [esp + 0x28]
push ecx
mov ecx, str.skipcs3force
lea edx, [esp + 0x34]
call fcn.0041e8f0
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov esi, dword [esp + 0x3c]
je 0x4014a1
lea edx, [esp + 0x38]
cmp eax, edx
je 0x4014a6
call fcn.0045f752
cmp dword [esp + 0x2c], esi
je 0x4014c3
push 0xd
push str._forceskipcs3
lea eax, [esp + 0x24]
push eax
mov dword [0x4baac4], edi
call fcn.00401ff0
lea ecx, [esp + 0x28]
push ecx
mov ecx, str.reupdate
lea edx, [esp + 0x34]
call fcn.0041e8f0
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov esi, dword [esp + 0x3c]
je 0x4014ea
lea edx, [esp + 0x38]
cmp eax, edx
je 0x4014ef
call fcn.0045f752
cmp dword [esp + 0x2c], esi
je 0x40150c
push 9
push str._reupdate
lea eax, [esp + 0x24]
push eax
mov dword [0x4baacc], edi
call fcn.00401ff0
lea ecx, [esp + 0x28]
push ecx
mov ecx, str.reupdateforce
lea edx, [esp + 0x34]
call fcn.0041e8f0
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov esi, dword [esp + 0x3c]
je 0x401533
lea edx, [esp + 0x38]
cmp eax, edx
je 0x401538
call fcn.0045f752
cmp dword [esp + 0x2c], esi
je 0x40155b
push 0xe
push str._reupdateforce
lea eax, [esp + 0x24]
push eax
mov dword [0x4baacc], edi
mov dword [0x4baae0], ebx
call fcn.00401ff0
lea ecx, [esp + 0x28]
push ecx
mov ecx, str.filter
lea edx, [esp + 0x34]
call fcn.0041e8f0
mov esi, dword [esp + 0x28]
cmp esi, ebx
mov ebp, dword [esp + 0x3c]
je 0x401582
lea edx, [esp + 0x38]
cmp esi, edx
je 0x401587
call fcn.0045f752
mov edi, dword [esp + 0x2c]
cmp edi, ebp
jne 0x401593
xor ecx, ecx
jmp 0x4015a9
cmp esi, ebx
jne 0x40159c
call fcn.0045f752
cmp edi, dword [esi + 4]
jne 0x4015a6
call fcn.0045f752
mov ecx, dword [edi + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.004021c0
mov byte [esp + 0x50], 2
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x4016f8
lea edi, [esp + 0x18]
call fcn.00401c30
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], ebx
jl 0x4016d4
push 0x49fa30
push ecx
call fcn.0045f07d
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, ebx
je 0x40160a
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x40160a
mov ecx, 0x49fa30
call fcn.0042cf70
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], ebx
jl 0x4016d4
push str.data
push ecx
call fcn.0045f07d
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, ebx
je 0x401640
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x401640
mov ecx, str.data
call fcn.0042cf70
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], ebx
jl 0x4016d4
push 0x49fa44
push ecx
call fcn.0045f07d
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, ebx
je 0x401676
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x401676
mov ecx, 0x49fa44
call fcn.0042cf70
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], ebx
jl 0x4016d4
push str.fast
push ecx
call fcn.0045f07d
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, ebx
je 0x4016a8
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4016a8
mov ecx, str.fast
call fcn.0042cf70
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], ebx
jl 0x4016d4
push str.defend
push ecx
call fcn.0045f07d
add esp, 8
cmp eax, ebx
je 0x4016d4
sub eax, dword [esp + 0x18]
sar eax, 1
cmp eax, 0xffffffff
je 0x4016d4
mov ecx, str.defend
call fcn.0042cf70
push 0x15
push str._channel_type_filter:
lea edx, [esp + 0x24]
push edx
call fcn.00401ff0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00401ff0
lea ecx, [esp + 0x28]
push ecx
mov ecx, str.channel
lea edx, [esp + 0x34]
call fcn.0041e8f0
mov esi, dword [esp + 0x28]
cmp esi, ebx
mov ebp, dword [esp + 0x3c]
je 0x40171f
lea edx, [esp + 0x38]
cmp esi, edx
je 0x401724
call fcn.0045f752
mov edi, dword [esp + 0x2c]
cmp edi, ebp
jne 0x401730
xor ecx, ecx
jmp 0x401746
cmp esi, ebx
jne 0x401739
call fcn.0045f752
cmp edi, dword [esi + 4]
jne 0x401743
call fcn.0045f752
mov ecx, dword [edi + 0x10]
lea eax, [esp + 0x20]
push eax
call fcn.004021c0
mov byte [esp + 0x50], 3
mov edx, dword [esp + 0x20]
cmp dword [edx - 0xc], ebx
je 0x4017af
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401763
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
mov eax, 0x4bab00
call fcn.00401f30
mov edi, 0x4bab00
call fcn.00401c30
push 0x15
push str._channel_name_filter:
lea ecx, [esp + 0x24]
push ecx
call fcn.00401ff0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00401ff0
xor ebx, ebx
lea eax, [esp + 0x28]
push eax
mov ecx, 0x49fac4
lea edx, [esp + 0x34]
call fcn.0041e8f0
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov esi, dword [esp + 0x3c]
je 0x4017d6
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x4017db
call fcn.0045f752
cmp dword [esp + 0x2c], esi
je 0x4018c6
mov edx, dword [0x4b994c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4b994c
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x50], 4
mov edx, dword [0x4b994c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4b994c
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x49facc
lea eax, [esp + 0x34]
mov byte [esp + 0x54], 5
call fcn.0041e990
lea edx, [esp + 0x28]
push edx
mov ecx, str.level
lea eax, [esp + 0x34]
call fcn.0041e990
mov esi, dword [esp + 0x24]
cmp esi, ebx
jne 0x40184f
xor eax, eax
jmp 0x401863
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401854
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
mov eax, 0x4baad4
call fcn.00401f30
mov edi, dword [esp + 0x28]
push edi
call fcn.0045f067
mov dword [0x4baad0], eax
lea eax, [edi - 0x10]
add esp, 4
mov byte [esp + 0x50], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x50], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
lea ecx, [esp + 0x28]
push ecx
mov ecx, str.update
lea edx, [esp + 0x34]
call fcn.0041e8f0
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov esi, dword [esp + 0x3c]
je 0x4018ed
lea edx, [esp + 0x38]
cmp eax, edx
je 0x4018f2
call fcn.0045f752
cmp dword [esp + 0x2c], esi
je 0x4019e6
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x50], 6
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
mov ecx, str.update
lea eax, [esp + 0x34]
mov byte [esp + 0x54], 7
call fcn.0041e990
lea ecx, [esp + 0x28]
push ecx
mov ecx, str.listen
lea eax, [esp + 0x34]
call fcn.0041e990
mov edi, dword [esp + 0x28]
push edi
call fcn.0045f067
mov esi, dword [esp + 0x28]
add esp, 4
cmp esi, ebx
mov ebp, eax
jne 0x401973
xor eax, eax
jmp 0x40198f
mov eax, esi
lea edx, [eax + 2]
jmp 0x401980
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401980
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
mov eax, 0x4babbc
call fcn.00401f30
lea eax, [edi - 0x10]
mov dword [0x4babb8], ebp
mov byte [esp + 0x50], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4019c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x50], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4019e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov esi, dword [esp + 0x1c]
push esi
push str.ParseCommandLine:_ws
mov ecx, 0x4ba960
call fcn.0041d5c0
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x50], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x50], 0xffffffff
call fcn.0041e1d0
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret