Function at 0x550130
Capabilities:
Get common file path

Disassembly:
sub esp, 0x450
push ebx
push ebp
push esi
push edi
xor ebp, ebp
xor bl, bl
push ebp
mov byte [esp + 0x1b], bl
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, 0x80010106
je 0x550159
mov byte [esp + 0x17], 1
mov bl, byte [esp + 0x17]
lea eax, [esp + 0x18]
push eax
push 0x70a6b0
push 1
push ebp
push 0x70a6c0
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [esp + 0x18], ebp
je 0x55033f
lea ecx, [esp + 0x258]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x258]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x5501a0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x256], 0x5c
lea eax, [esp + eax*2 + 0x256]
jne 0x5501c4
mov word [eax], bp
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x46c]
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
push ecx
push eax
call edx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x47c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x58]
call eax
mov esi, dword [esp + 0x470]
cmp esi, ebp
je 0x55028a
cmp word [esi], bp
je 0x55028a
push 0x218
call fcn.004aefd0
add esp, 4
cmp eax, ebp
je 0x55021e
mov ecx, esi
call fcn.0054fa60
jmp 0x550220
xor eax, eax
mov ecx, dword [eax]
push 1
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [esp + 0x1c]
call fcn.005507a0
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x550281
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], ebp
mov eax, dword [eax + 0x214]
push eax
push ebp
push ebp
call dword [sym.imp.SHELL32.dll_SHCreateShellItem]
test eax, eax
jl 0x550271
mov ecx, dword [esp + 0x24]
cmp ecx, ebp
je 0x550281
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x30]
call eax
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x550281
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea edi, [esp + 0x1c]
call fcn.00579d70
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
or eax, 0x1800
mov dword [esp + 0x34], eax
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x24]
push ecx
call eax
mov edx, dword [esp + 0x474]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x47c]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x464]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
mov eax, dword [esp + 0x18]
jl 0x550333
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebp
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x6c]
call eax
test eax, eax
mov eax, dword [esp + 0x20]
jl 0x550323
cmp eax, ebp
je 0x55032f
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ebp
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jge 0x550358
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x55032f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x55033f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test bl, bl
je 0x550349
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x450
ret 0x1c
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call fcn.005565d0
mov eax, dword [esp + 0x28]
xor esi, esi
cmp eax, ebp
mov dword [esp + 0x30], eax
mov bl, 1
jbe 0x550409
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + esi*4]
test eax, eax
mov ebp, dword [esp + 0x20]
lea edi, [ecx + esi*4]
je 0x5503a2
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi], 0
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x20]
push edi
push esi
push ebp
call edx
test bl, bl
je 0x5503fa
mov eax, dword [esp + 0x2c]
cmp dword [eax + esi*4], 0
je 0x5503fa
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
push edx
push 0x80058000
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5503f8
push eax
mov eax, dword [esp + 0x474]
call fcn.004aec90
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor bl, bl
add esi, 1
cmp esi, dword [esp + 0x28]
jb 0x550382
xor ebp, ebp
mov eax, dword [esp + 0x468]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x258]
push edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov word [esp + 0x50], bp
call fcn.0054fb20
mov dword [esp + 0x44], eax
or eax, edx
lea eax, [esp + 0x38]
mov dword [esp + 0x48], edx
push eax
jne 0x550464
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x28], 0x6dbbf0
call fcn.0054fd10
jmp 0x550475
mov ecx, dword [esp + 0x468]
push ecx
lea esi, [esp + 0x24]
call fcn.00579db0
mov eax, dword [eax]
mov ecx, dword [esp + 0x2c]
cmp eax, ebp
invalid
xchg esp, eax