Function at 0x46a4ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x46a4b5
add esp, 0xfffff784
mov eax, dword [ebp - 4]
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, dword [ebp + 8]
xor edx, edx
mov ebx, eax
mov dword [ebp - 0x10], edx
mov ecx, dword [esi]
cmp ecx, dword [ebx]
je 0x46a4e5
xor eax, eax
jmp 0x46a92c
mov edx, dword [esi + 8]
sub edx, 0xfffffe67
je 0x46a5c3
sub edx, 4
je 0x46a8cd
sub edx, 3
je 0x46a60d
sub edx, 0x18d
jne 0x46a92a
lea eax, [ebp - 0xc]
push eax
call sub.USER32.DLL_GetCursorPos
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 4]
call sub.USER32.DLL_ScreenToClient
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
push edx
push 0
push 0x1111
push dword [ebx]
call sub.USER32.DLL_SendMessageA
cmp dword [ebp - 0x18], 0
je 0x46a92a
push dword [ebp - 0x18]
push 9
push 0x110b
push dword [ebx]
call sub.USER32.DLL_SendMessageA
test byte [ebp - 0x1c], 4
je 0x46a92a
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 4]
call sub.USER32.DLL_ClientToScreen
mov dword [ebp - 0x4c], 4
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x48], eax
push edx
push 0
push 0x110c
push dword [ebx]
call sub.USER32.DLL_SendMessageA
test eax, eax
jne 0x46a5a0
xor eax, eax
jmp 0x46a92c
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x46a92a
push dword [edi + 4]
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [edi]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0046a310
jmp 0x46a92a
test eax, eax
jl 0x46a92a
mov edi, dword [esi + 0x34]
test edi, edi
je 0x46a92a
mov eax, dword [edi]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push dword [edi + 4]
mov ecx, dword [0x4c9a0c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
push dword [edi + 8]
mov edx, dword [0x4c9a0c]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
push edi
mov eax, dword [0x4c9a0c]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
jmp 0x46a92a
lea eax, [esi + 0x38]
mov edi, dword [eax + 0x24]
test edi, edi
jne 0x46a7ba
mov byte [ebp - 0x458], 0
mov word [ebp - 0xc58], 0
mov esi, dword [eax + 4]
mov dword [ebp - 0xc80], 1
mov dword [ebp - 0xc7c], esi
lea eax, [ebp - 0x1080]
mov dword [ebp - 0xc70], eax
lea edx, [ebp - 0xc80]
mov dword [ebp - 0xc6c], 0x400
push edx
push 0
push 0x110c
push dword [ebx]
call sub.USER32.DLL_SendMessageA
test eax, eax
jne 0x46a674
xor eax, eax
jmp 0x46a92c
push esi
push 3
push 0x110a
push dword [ebx]
call sub.USER32.DLL_SendMessageA
mov esi, eax
test esi, esi
je 0x46a795
lea edx, [ebp - 0x458]
push edx
call fcn.004949f8
pop ecx
mov edi, eax
lea eax, [ebp - 0x1080]
push eax
call fcn.004949f8
pop ecx
add edi, eax
cmp edi, 0x3ff
jae 0x46a6f3
cmp byte [ebp - 0x458], 0
je 0x46a6dd
lea eax, [ebp - 0x1080]
call fcn.0040bf34
lea edx, [ebp - 0x458]
push edx
lea ecx, [ebp - 0x1080]
push ecx
call fcn.004948ec
add esp, 8
lea eax, [ebp - 0x1080]
push eax
lea edx, [ebp - 0x458]
push edx
call fcn.004949c8
add esp, 8
call fcn.0040ff8c
test eax, eax
je 0x46a62e
lea ecx, [ebp - 0x1880]
lea eax, [ebp - 0xc80]
mov dword [ebp - 0xc70], ecx
mov dword [ebp - 0xc6c], 0x400
push eax
push 0
push 0x113e
push dword [ebx]
call sub.USER32.DLL_SendMessageA
test eax, eax
je 0x46a62e
lea eax, [ebp - 0xc58]
call fcn.004101ec
mov edi, eax
lea eax, [ebp - 0x1880]
call fcn.004101ec
add edi, eax
cmp edi, 0x3ff
jge 0x46a62e
cmp word [ebp - 0xc58], 0
je 0x46a77f
lea eax, [ebp - 0x1880]
call fcn.0040bf58
lea edx, [ebp - 0xc58]
lea eax, [ebp - 0x1880]
call fcn.00410234
lea edx, [ebp - 0x1880]
lea eax, [ebp - 0xc58]
call fcn.00410200
jmp 0x46a62e
lea edx, [ebp - 0xc58]
push edx
lea ecx, [ebp - 0x458]
push ecx
push 0x40a
push dword [ebx]
call sub.USER32.DLL_GetParent
push eax
call sub.USER32.DLL_SendMessageA
jmp 0x46a92a
mov word [ebp - 0x2480], 0
lea eax, [ebp - 0x1c80]
push eax
push dword [edi + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListA
test eax, eax
je 0x46a92a
cmp byte [0x4c9608], 0
jne 0x46a80c
lea edx, [ebp - 0x14]
push edx
push 0x13
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
push 0x4c9608
push dword [ebp - 0x14]
call sub.SHELL32.DLL_SHGetPathFromIDListA
push dword [ebp - 0x14]
mov ecx, dword [0x4c9a0c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
push 0x4c9608
call fcn.004949f8
pop ecx
push eax
lea edx, [ebp - 0x1c80]
push edx
push 0x4c9608
call fcn.00494a54
add esp, 0xc
test eax, eax
jne 0x46a860
lea ecx, [ebp - 0x2880]
mov edx, edi
push ecx
lea ecx, [edi + 4]
mov eax, dword [ebp - 4]
call fcn.0046a938
test al, al
je 0x46a8ab
lea eax, [ebp - 0x2880]
push eax
lea edx, [ebp - 0x1c80]
push edx
call fcn.004949c8
add esp, 8
jmp 0x46a8ab
call fcn.0040ff8c
test eax, eax
je 0x46a8ab
cmp dword [0x4a731c], 0
jne 0x46a892
push 0x4a732c
call sub.KERNEL32.DLL_GetModuleHandleA
mov esi, eax
test esi, esi
je 0x46a892
push str.SHGetPathFromIDListW
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a731c], eax
cmp dword [0x4a731c], 0
je 0x46a8ab
lea eax, [ebp - 0x2480]
push eax
push dword [edi + 8]
call dword [0x4a731c]
lea edx, [ebp - 0x2480]
push edx
lea ecx, [ebp - 0x1c80]
push ecx
push 0x40a
push dword [ebx]
call sub.USER32.DLL_GetParent
push eax
call sub.USER32.DLL_SendMessageA
jmp 0x46a92a
test byte [esi + 0x40], 0x40
jne 0x46a92a
mov edi, dword [esi + 0x5c]
test edi, edi
je 0x46a92a
lea eax, [ebp - 0x10]
push eax
push 0x4aa734
push 0
push dword [edi + 4]
mov edx, dword [edi]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
test eax, eax
jl 0x46a906
push dword [edi + 8]
push dword [esi + 0x3c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebx]
mov eax, ebx
call fcn.0046ae70
mov eax, dword [esi + 0x3c]
xor edx, edx
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], 0x46b0a0
mov dword [ebp - 0x50], edx
push ecx
push 0
push 0x1115
push dword [ebx]
call sub.USER32.DLL_SendMessageA
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8