Function at 0x5665a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab576
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x5f300c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x448], edi
test edi, edi
je 0x5668a3
push 0
lea ecx, [esi + 0xb0c]
push str.temp.files.sync.load
call fcn.00528190
test eax, eax
lea eax, [ebp - 0x424]
push eax
setne bh
push 0x104
mov byte [ebp - 0x442], bh
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
push 0
push 0xffffffffffffffff
xor bl, bl
mov dword [ebp - 0x44c], eax
push edi
mov byte [ebp - 0x441], bl
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
xor edi, edi
mov dword [ebp - 0x450], eax
test eax, eax
jle 0x56683f
jmp 0x566640
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebp - 0x448]
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
test edi, edi
jne 0x56668a
test bh, bh
je 0x56668a
push dword [ebp - 0x44c]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x56668a
mov bl, 1
mov byte [ebp - 0x441], bl
xor eax, eax
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 7
mov word [ebp - 0x43c], ax
test bl, bl
je 0x56671a
lea eax, [ebp - 0x21c]
mov dword [ebp - method.FilePath.virtual_0], vtable.FilePath.0
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5666c0
sub eax, edx
lea ecx, [ebp - 0x43c]
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0040acf0
push 0x10
lea eax, [ebp - 0x440]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.0054e6b0
lea ecx, [ebp - 0x43c]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.0040ab30
test bl, bl
je 0x56683f
jmp 0x56682c
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x566723
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x43c]
call fcn.0040acf0
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x1274]
mov ecx, dword [esi + 0x126c]
inc eax
cmp ecx, eax
ja 0x56676f
push ecx
lea ecx, [esi + 0x1264]
call fcn.00568fa0
mov ecx, dword [esi + 0x126c]
dec ecx
and ecx, dword [esi + 0x1270]
mov dword [esi + 0x1270], ecx
mov eax, dword [esi + 0x1274]
add eax, ecx
mov ecx, dword [esi + 0x126c]
dec ecx
and ecx, eax
lea ebx, [ecx*4]
mov ecx, dword [esi + 0x1268]
cmp dword [ebx + ecx], 0
jne 0x5667b9
push 0x18
call fcn.0059df75
mov ecx, dword [esi + 0x1268]
add esp, 4
mov dword [ebx + ecx], eax
mov ecx, dword [esi + 0x1268]
mov ecx, dword [ebx + ecx]
mov eax, dword [ebp - 0x43c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x438]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x434]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x430]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x42c]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x428]
mov dword [ecx + 0x14], eax
xor eax, eax
inc dword [esi + 0x1274]
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 7
mov word [ebp - 0x43c], ax
mov dword [ebp - 4], 0xffffffff
call fcn.0040ab30
mov bh, byte [ebp - 0x442]
mov bl, byte [ebp - 0x441]
inc edi
cmp edi, dword [ebp - 0x450]
jl 0x566640
push dword [ebp - 0x448]
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, esi
call fcn.00563920
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x566871
push 9
push ecx
mov ecx, esi
call fcn.00563920
add esp, 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00563920
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [esi + 0x1274], 0
je 0x5668a3
push 0
push 0
push 0x8001
push ecx
mov ecx, esi
call fcn.00563920
add esp, 4
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059df64
mov esp, ebp
pop ebp
ret 4