Function at 0x495430
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d9122
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.004034e0
xor ebx, ebx
lea edx, [esp + 0x1c]
mov dword [esp + 0x144], ebx
mov edi, dword [esp + 0x14]
push edx
call fcn.0040a740
lea eax, [esp + 0x1c]
mov byte [esp + 0x144], 1
call fcn.0040aee0
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.004034e0
mov byte [esp + 0x144], 2
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
cmp eax, ebx
je 0x495567
mov ecx, 0x4eba88
mov eax, edi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4954e6
cmp dx, bx
je 0x4954e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4954e6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4954c0
xor eax, eax
jmp 0x4954eb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x495567
lea eax, [edi - 0x10]
mov byte [esp + 0x144], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x495513
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], bl
call fcn.0040a7f0
mov dword [esp + 0x144], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49554e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
add esi, 0x44
mov ebx, str.cmdline
mov edi, esi
call fcn.00406f50
test eax, eax
je 0x49558d
cmp dword [eax + 0x48], 0x10
jb 0x495588
mov eax, dword [eax + 0x34]
jmp 0x49558f
add eax, 0x34
jmp 0x49558f
xor eax, eax
push 0xfde9
lea ecx, [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], ecx
call fcn.00403980
mov eax, dword [esp + 0x10]
mov byte [esp + 0x144], 3
mov ebx, dword [esp + 0x34]
add eax, 8
test ebx, ebx
jne 0x4955c1
xor ecx, ecx
jmp 0x4955d5
mov ecx, ebx
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4955c6
sub ecx, edi
sar ecx, 1
push ebx
mov ebx, ecx
call fcn.00403b90
mov byte [esp + 0x144], 2
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x38]
cmp eax, edx
je 0x4955fa
push eax
call fcn.0049f15f
add esp, 4
mov ebx, str.quicklaunchbar
mov edi, esi
call fcn.00406f50
test eax, eax
je 0x49561a
cmp dword [eax + 0x48], 0x10
jb 0x495615
mov eax, dword [eax + 0x34]
jmp 0x49561c
add eax, 0x34
jmp 0x49561c
xor eax, eax
push eax
call fcn.004a076e
mov ecx, dword [esp + 0x14]
add esp, 4
mov ebx, str.name
mov edi, esi
mov dword [ecx + 0x14], eax
call fcn.00406f50
test eax, eax
je 0x49564c
cmp dword [eax + 0x48], 0x10
jb 0x495647
mov eax, dword [eax + 0x34]
jmp 0x49564e
add eax, 0x34
jmp 0x49564e
xor eax, eax
push 0xfde9
lea edx, [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], edx
call fcn.00403980
mov eax, dword [esp + 0x10]
mov byte [esp + 0x144], 4
mov ebx, dword [esp + 0x34]
add eax, 0xc
test ebx, ebx
jne 0x495680
xor ecx, ecx
jmp 0x495694
mov ecx, ebx
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x495685
sub ecx, edi
sar ecx, 1
push ebx
mov ebx, ecx
call fcn.00403b90
mov byte [esp + 0x144], 2
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x4956b9
push eax
call fcn.0049f15f
add esp, 4
mov ebx, 0x4efd54
mov edi, esi
call fcn.00406f50
test eax, eax
je 0x4956d9
cmp dword [eax + 0x48], 0x10
jb 0x4956d4
mov eax, dword [eax + 0x34]
jmp 0x4956db
add eax, 0x34
jmp 0x4956db
xor eax, eax
push 0xfde9
lea edx, [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], edx
call fcn.00403980
mov eax, dword [esp + 0x10]
mov byte [esp + 0x144], 5
mov edi, dword [esp + 0x34]
add eax, 0x10
test edi, edi
jne 0x49570d
xor ecx, ecx
jmp 0x495721
mov ecx, edi
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x495712
sub ecx, ebx
sar ecx, 1
push edi
mov ebx, ecx
call fcn.00403b90
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x49573e
push eax
call fcn.0049f15f
add esp, 4
mov byte [esp + 0x144], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x495766
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 0
call fcn.0040a7f0
mov dword [esp + 0x144], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4957a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4