Function at 0x4774d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
push esi
push edi
lea esi, [ebp - 1]
call fcn.00447312
lea eax, [ebp - 8]
push eax
push 0x5e0f24
push 1
xor ebx, ebx
push ebx
push 0x5e0f34
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [ebp - 8], ebx
je 0x477676
lea eax, [ebp - 0x238]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x238]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x47752c
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x23a]
cmp word [eax], 0x5c
jne 0x47754a
mov word [eax], bx
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 8]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x58]
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x4775e5
cmp word [esi], bx
je 0x4775e5
push 0x218
call fcn.004a8f86
cmp eax, ebx
pop ecx
je 0x477588
mov edx, esi
mov edi, eax
call fcn.00476c21
jmp 0x47758a
xor eax, eax
push 1
push dword [eax]
mov dword [ebp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp + 0x20]
call fcn.00477f63
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x4775dd
lea ecx, [ebp + 0x10]
push ecx
mov dword [ebp + 0x10], ebx
push dword [eax + 0x214]
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateShellItem]
test eax, eax
jl 0x4775d0
cmp dword [ebp + 0x10], ebx
je 0x4775dd
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4775dd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edi, [ebp + 0x20]
call fcn.0055efe6
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x28]
or dword [ebp - 0x10], 0x1800
cmp byte [ebp + 0x24], bl
je 0x477605
or dword [ebp - 0x10], 0x200
mov eax, dword [ebp - 8]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
push dword [ebp + 0x18]
mov eax, dword [ebp - 8]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
mov eax, dword [ebp - 8]
jl 0x47766c
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xc], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x6c]
test eax, eax
mov eax, dword [ebp - 0xc]
jl 0x47765f
cmp eax, ebx
je 0x477669
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x47768a
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x477669
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x477676
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 1], bl
je 0x477681
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x20
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.0055e235
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x18], eax
mov byte [ebp + 0x27], 1
mov dword [ebp + 0x10], ebx
jbe 0x47771e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp - 0xc]
lea esi, [eax + ecx*4]
mov eax, dword [esi]
cmp eax, ebx
je 0x4776c7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
mov eax, dword [edi]
push esi
push dword [ebp + 0x10]
push edi
call dword [eax + 0x20]
cmp byte [ebp + 0x27], bl
je 0x477713
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax*4]
cmp dword [eax], ebx
je 0x477713
lea edx, [ebp + 0x24]
push edx
mov dword [ebp + 0x24], ebx
mov eax, dword [eax]
mov ecx, dword [eax]
push 0x80058000
push eax
call dword [ecx + 0x14]
cmp dword [ebp + 0x24], ebx
je 0x477710
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x14]
call fcn.0040162b
push dword [ebp + 0x24]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [ebp + 0x27], bl
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x14]
jb 0x4776ad
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x238]
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.00476fa3
mov dword [ebp - 0x24], eax
or eax, edx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], edx
push eax
jne 0x477765
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x14]
push eax
mov dword [ebp + 0x24], 0x5c8654
call fcn.00477149
jmp 0x477770
push dword [ebp + 8]
lea esi, [ebp + 0x24]
call fcn.0055f01c
mov eax, dword [eax]
cmp eax, ebx
mov eax, dword [ebp - 0x1c]
sete byte [ebp + 0x27]
cmp eax, ebx
je 0x477784
call fcn.00571b9f
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x477791
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x47779e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 1], bl
je 0x4777a9
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, byte [ebp + 0x27]
jmp 0x477683