Function at 0x500030
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
push 0x555a38
push 1
push 0
push 0x555a78
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jl 0x500086
cmp dword [ebp - 0x210], 0
jne 0x50008d
xor al, al
jmp 0x50030e
mov dword [ebp - 0x214], 0
lea ecx, [ebp - 0x214]
push ecx
push 0x555a68
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [eax]
call edx
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jl 0x5000ce
cmp dword [ebp - 0x214], 0
jne 0x5000e9
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x210]
push edx
mov eax, dword [ecx + 8]
call eax
xor al, al
jmp 0x50030e
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0041eef0
add esp, 4
movzx edx, al
test edx, edx
je 0x50011b
push 2
mov ecx, dword [ebp + 0xc]
call fcn.004183d0
push eax
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ecx + 0x14]
call eax
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0050d5d0
add esp, 0xc
push 0x103
mov ecx, dword [ebp + 8]
call fcn.004183d0
push eax
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, dword [ebp + 8]
call fcn.004183d0
push eax
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [edx + 0x50]
call ecx
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x210]
push edx
mov eax, dword [ecx + 0x24]
call eax
mov ecx, dword [ebp + 0x10]
call fcn.00407b50
movzx ecx, al
test ecx, ecx
jne 0x5001bd
mov ecx, dword [ebp + 0x10]
call fcn.004183d0
push eax
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [eax + 0x2c]
call edx
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.004183d0
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050b71f
add esp, 4
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x21c]
lea edx, [ecx + ecx + 2]
push edx
push 0
mov eax, dword [ebp - 0x220]
push eax
call fcn.0050d5d0
add esp, 0xc
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x220]
push edx
mov ecx, dword [ebp + 8]
call fcn.004183d0
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x500280
cmp dword [ebp - 0x21c], 0
jbe 0x500280
push 0
mov ecx, dword [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [eax + 0x44]
call edx
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.0050b728
add esp, 4
push 1
mov ecx, dword [ebp + 0xc]
call fcn.004183d0
push eax
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [eax + 0x18]
call edx
test eax, eax
jne 0x5002ca
mov dword [ebp - 0x228], 1
jmp 0x5002d4
mov dword [ebp - 0x228], 0
mov al, byte [ebp - 0x228]
mov byte [ebp - 0x215], al
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [eax + 8]
call edx
mov al, byte [ebp - 0x215]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050b0b7
mov esp, ebp
pop ebp
ret 0xc