Function at 0x49a330
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x4e82b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [esp + 0x34]
xor bl, bl
mov ecx, 1
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov edx, dword [eax]
test edx, edx
je 0x49a379
cmp edx, 0xffffffff
je 0x49a379
lock xadd dword [eax], ecx
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [esp + 0x14]
push eax
push 0x60d064
push 1
push 0
push 0x60d084
mov dword [esp + 0x40], 0
mov byte [esp + 0x48], 0
call esi
cmp eax, 0x800401f0
jne 0x49a3ca
push 0
mov byte [esp + 0x38], 1
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x14]
push eax
push 0x60d064
push 1
push 0
push 0x60d084
call esi
or edi, 0xffffffff
test eax, eax
js 0x49a531
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push 3
push ecx
mov ecx, ebp
call dword [eax + 0x58]
mov edx, eax
push 1
push ecx
mov ecx, esp
mov byte [esp + 0x34], 1
push ecx
mov eax, 0x5c
mov word [ecx], ax
mov eax, esp
mov ecx, 0x2f
mov word [eax], cx
mov ecx, edx
call fcn.0041c4a0
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx]
mov ecx, eax
call fcn.0041de40
push eax
push dword [esp + 0x18]
call dword [esi + 0x50]
mov ecx, dword [esp + 0x18]
mov esi, eax
mov byte [esp + 0x2c], 0
mov edx, dword [ecx]
test edx, edx
je 0x49a445
cmp edx, edi
je 0x49a452
mov eax, edi
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x49a452
mov ecx, dword [esp + 0x18]
push 4
push 2
push ecx
call fcn.00413640
add esp, 0xc
test esi, esi
js 0x49a523
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push 4
push ecx
mov ecx, ebp
call dword [eax + 0x58]
mov edx, eax
push 1
push ecx
mov ecx, esp
mov byte [esp + 0x34], 2
push ecx
mov eax, 0x5c
mov word [ecx], ax
mov eax, esp
mov ecx, 0x2f
mov word [eax], cx
mov ecx, edx
call fcn.0041c4a0
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx]
mov ecx, eax
call fcn.0041de40
push eax
push dword [esp + 0x18]
call dword [esi + 0x24]
mov ecx, dword [esp + 0x18]
mov esi, eax
mov byte [esp + 0x2c], 0
mov edx, dword [ecx]
test edx, edx
je 0x49a4cb
cmp edx, 0xffffffff
je 0x49a4d8
mov eax, edi
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x49a4d8
mov ecx, dword [esp + 0x18]
push 4
push 2
push ecx
call fcn.00413640
add esp, 0xc
test esi, esi
js 0x49a523
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x60d074
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x49a523
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push 1
mov esi, dword [eax]
call fcn.0041de40
push eax
push dword [esp + 0x20]
call dword [esi + 0x18]
test eax, eax
movzx ebx, bl
mov eax, 1
cmovns ebx, eax
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test bl, bl
jne 0x49a57c
lea eax, [esp + 0x18]
push 0xffffffffffffffff
push eax
call fcn.00410680
add esp, 8
push eax
push 0xa
mov ecx, ebp
mov byte [esp + 0x34], 3
call fcn.0047c300
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
test ecx, ecx
je 0x49a56f
cmp ecx, 0xffffffff
je 0x49a57c
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x49a57c
mov eax, dword [esp + 0x18]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
cmp byte [esp + 0x34], 0
je 0x49a589
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
test ecx, ecx
je 0x49a5a8
cmp ecx, 0xffffffff
je 0x49a5b5
lock xadd dword [eax], edi
dec edi
setne al
test al, al
jne 0x49a5b5
mov eax, dword [esp + 0x1c]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov al, bl
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4