Function at 0x4730d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x250
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00472ee0
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x14]
xor ebp, ebp
rep stosd dword es:[edi], eax
mov eax, dword [0x6dcf84]
push 0x7f00
push ebp
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], eax
push ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x1c], 0x2008
mov dword [esp + 0x30], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], str.360SE_PopUp
mov dword [esp + 0x20], 0x472ec0
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
je 0x473393
lea edx, [esi + 0x8a0]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x5a]
mov word [esp + 0x58], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x58]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x58]
lea ebx, [esi + 0x8dc]
test ecx, ecx
je 0x4731a5
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x4731b2
cmp ebp, dword [eax - 4]
jle 0x4731c5
mov ecx, ebx
call fcn.00407610
push ebp
mov ecx, ebx
call fcn.00407580
test eax, eax
je 0x4731f0
mov edi, dword [ebx]
lea eax, [ebp + ebp]
mov ecx, eax
lea esi, [esp + 0x58]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov esi, dword [esp + 0x10]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [edx + eax], 0
lea eax, [esp + 0x58]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x58]
lea ebx, [esi + 0x8e0]
test ecx, ecx
jne 0x473212
xor ebp, ebp
jmp 0x47321f
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x47322c
cmp ebp, dword [eax - 4]
jle 0x47323f
mov ecx, ebx
call fcn.00407610
push ebp
mov ecx, ebx
call fcn.00407580
test eax, eax
je 0x473266
mov edi, dword [ebx]
lea eax, [ebp + ebp]
mov ecx, eax
lea esi, [esp + 0x58]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [eax + edx], 0
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x48]
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov ebx, dword [esp + 0x10]
push 0
push 0
push 0x490260
lea eax, [ebx + 0x878]
push 0x4902c0
push eax
push 0
lea ecx, [ebx + 4]
call fcn.004b1c80
mov eax, dword [esp + 0x14]
test eax, eax
je 0x473346
mov ecx, dword [0x4eb4c0]
mov edx, eax
shr edx, 0x10
mov esi, eax
mov dword [esp + 0x10], ecx
jne 0x4732dc
and eax, 0xffff
lea ecx, [esp + 0x10]
push eax
call fcn.00407b70
jmp 0x47330c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x47330c
push edi
lea ecx, [esp + 0x14]
call fcn.00407580
test eax, eax
je 0x47330c
lea ecx, [edi + edi]
mov edi, dword [esp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4eb24c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x473346
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x473346
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004d3765
add esp, 4
push 0x4eb840
mov ecx, ebx
call fcn.004733a0
mov ecx, dword [ebx + 0x8c8]
test ecx, ecx
jne 0x473360
xor eax, eax
jmp 0x47336b
mov eax, dword [ebx + 0x8cc]
sub eax, ecx
sar eax, 2
push str.Plugin
mov ecx, ebx
mov dword [ebx + 0x8e4], eax
call fcn.004733a0
mov ecx, ebx
call fcn.00474860
mov ecx, ebx
call fcn.00475250
mov ecx, ebx
call fcn.004755e0
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x250
ret