Function at 0x406cb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43d2a7
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebp
push esi
mov eax, dword [0x44e6f0]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 8
mov dword [esp + 0x2c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.0040e978
push 0
call fcn.00410c18
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [esp + 0x10]
call fcn.004022e0
mov dword [esp + 0xc8], 0
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
jl 0x406dfd
push str._runonce
push ecx
call fcn.00427ab9
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x406dd8
sub eax, ecx
test eax, eax
jle 0x406dd8
lea ecx, [esp + 0x2c]
push ecx
call fcn.00409130
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str._runhelper
mov byte [esp + 0xd0], 1
call fcn.004022e0
call fcn.00409620
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0xcc], 0
call fcn.00409220
mov dword [esp + 0xc8], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406dc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
cmp dword [ecx - 0xc], 0
jl 0x406dfd
push str._setrunonce
push ecx
call fcn.00427ab9
add esp, 8
test eax, eax
je 0x406dfd
sub eax, dword [esp + 0xc]
test eax, eax
jle 0x406dfd
call fcn.00407ae0
call fcn.00407290
push str._refresh
lea ecx, [esp + 0x18]
xor ebp, ebp
call fcn.004022e0
mov byte [esp + 0xc8], 2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406f4d
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], ebp
jl 0x406f4d
push eax
push ecx
call fcn.00427ab9
add esp, 8
test eax, eax
je 0x406f4d
mov ecx, dword [esp + 0xc]
sub eax, ecx
mov esi, eax
test esi, esi
jle 0x406f4d
mov edx, dword [esp + 0x14]
add esi, dword [edx - 0xc]
mov eax, dword [ecx - 0xc]
js 0x406e84
cmp esi, eax
jg 0x406e84
lea eax, [esi + ecx]
push 0x4446fc
push eax
call fcn.00427ab9
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x406e84
sub eax, ecx
test eax, eax
jge 0x406e87
mov eax, dword [ecx - 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.00403690
mov byte [esp + 0xc8], 3
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
sub eax, esi
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00403610
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xcc], 4
call fcn.00403c90
mov byte [esp + 0xc8], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ef0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
push 0x444614
push esi
call fcn.00427967
add esp, 8
test eax, eax
je 0x406f29
push esi
call fcn.0042848d
lea ecx, [eax - 1]
add esp, 4
cmp ecx, 0x7ffffffd
ja 0x406f29
mov dword [0x4557e4], eax
mov dword [0x457004], eax
mov ebp, 1
lea eax, [esi - 0x10]
mov byte [esp + 0xc8], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406f4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str._first
lea ecx, [esp + 0x1c]
call fcn.004022e0
mov byte [esp + 0xc8], 5
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x407093
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
jl 0x407093
push ecx
push eax
call fcn.00427ab9
add esp, 8
test eax, eax
je 0x407093
mov ecx, dword [esp + 0xc]
sub eax, ecx
mov esi, eax
test esi, esi
jle 0x407093
mov edx, dword [esp + 0x18]
add esi, dword [edx - 0xc]
mov eax, dword [ecx - 0xc]
js 0x406fce
cmp esi, eax
jg 0x406fce
lea eax, [esi + ecx]
push 0x4446fc
push eax
call fcn.00427ab9
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x406fce
sub eax, ecx
test eax, eax
jge 0x406fd1
mov eax, dword [ecx - 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.00403690
mov byte [esp + 0xc8], 6
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
sub eax, esi
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00403610
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xcc], 7
call fcn.00403c90
mov byte [esp + 0xc8], 6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40703a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
push 0x444614
push esi
call fcn.00427967
add esp, 8
test eax, eax
je 0x40706f
push esi
call fcn.0042848d
add esp, 4
cmp eax, 0x7ffffffe
ja 0x40706f
mov dword [0x4557e0], eax
mov dword [0x457008], eax
mov ebp, 1
lea eax, [esi - 0x10]
mov byte [esp + 0xc8], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407093
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
je 0x40709c
call fcn.00407570
cmp byte [0x4556d0], 0
je 0x407152
test ebp, ebp
je 0x4070b2
call fcn.00407290
mov ecx, dword [0x4557e4]
mov edx, dword [0x4557e0]
push 0x8c
mov dword [0x457004], ecx
mov dword [0x457008], edx
call fcn.0040b33e
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0xc8], 8
je 0x4070f1
push eax
call fcn.00409130
mov esi, eax
jmp 0x4070f3
xor esi, esi
mov byte [esp + 0xc8], 5
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
jl 0x407126
push str._noupdate
push eax
call fcn.00427ab9
add esp, 8
test eax, eax
je 0x407126
sub eax, dword [esp + 0xc]
test eax, eax
jle 0x407126
mov dword [esi + 0x7c], 0
mov eax, dword [esi]
mov edx, dword [eax + 0x134]
push 0
push 0x66
mov ecx, esi
call edx
push 0
mov ecx, esi
call fcn.0040dad8
push 0x444714
mov ecx, esi
call fcn.0040da3e
mov eax, dword [esp + 0x20]
mov dword [eax + 0x20], esi
mov byte [esp + 0xc8], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40717a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xc8], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4071a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xc8], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4071cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov esp, ebp
pop ebp
ret