Function at 0x47f018
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7d0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov byte [ebp - 5], 0
mov esi, eax
xor eax, eax
mov ebx, edx
xor edx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
or edi, 0xffffffff
cmp dword [ebp + 8], 0
jne 0x47f05c
lea ecx, [ebp - 0xc]
push ecx
push 0x11
push dword [esi]
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
lea eax, [ebp - 0x10]
push eax
push 0x12
push dword [esi]
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
xor edx, edx
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x14]
push ecx
push 0x20
push dword [esi]
push ebx
mov eax, dword [ebx]
call dword [eax + 0x10]
test eax, eax
jne 0x47f2ae
cmp dword [ebp - 0x14], 0
je 0x47f2ae
xor edx, edx
mov dword [ebp - 0x18], edx
jmp 0x47f28a
mov dword [ebp - 0x20], 0x10000000
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x18]
push ecx
push eax
push 1
push ebx
mov edx, dword [ebx]
call dword [edx + 0x24]
test byte [ebp - 0x1d], 0x10
jne 0x47f0bc
push dword [ebp - 0x18]
mov ecx, dword [0x4caa0c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x47f28a
lea edx, [ebp - 0x430]
push edx
push 0
mov ecx, 1
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.0046b0d4
test eax, eax
jne 0x47f0ec
push dword [ebp - 0x18]
mov ecx, dword [0x4caa0c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x47f28a
cmp dword [ebp + 8], 0
jne 0x47f190
push dword [ebp - 0x18]
push 0xffffffffffffffff
lea edx, [ebp - 0x430]
push edx
push 0
push 1
push 0xffffffffffffffff
push 1
lea edx, [ebp - 0x430]
mov ecx, 4
mov eax, esi
call fcn.0047f2ec
mov dword [ebp - 0x24], eax
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push 0
push ebx
mov eax, dword [ebx]
call dword [eax + 0x1c]
test eax, eax
jne 0x47f138
mov edx, dword [ebp - 0x24]
inc edx
mov dword [esi + 0xc], edx
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push 0
push ebx
mov ecx, dword [ebx]
call dword [ecx + 0x1c]
test eax, eax
jne 0x47f28a
xor eax, eax
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
push edx
push 0x4ab734
push 0
push dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
call dword [ecx + 0x14]
test eax, eax
jne 0x47f28a
cmp dword [ebp - 0x28], 0
je 0x47f28a
push 1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
mov eax, esi
call fcn.0047f018
mov byte [ebp - 5], al
jmp 0x47f28a
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0046b044
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x830]
mov byte [ebp - 0x830], 0
push ecx
push dword [ebp - 0x2c]
call sub.SHELL32.DLL_SHGetPathFromIDListA
test eax, eax
mov edx, dword [0x4caa0c]
setne al
and eax, 1
mov byte [ebp - 0x2d], al
push dword [ebp - 0x2c]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
cmp byte [ebp - 0x2d], 0
jne 0x47f1e7
push dword [ebp - 0x18]
mov eax, dword [0x4caa0c]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
jmp 0x47f28a
xor ecx, ecx
mov cl, byte [ebp - 0x830]
push ecx
call fcn.00498cc4
pop ecx
test eax, eax
je 0x47f25e
xor eax, eax
mov al, byte [ebp - 0x82f]
cmp eax, 0x3a
jne 0x47f25e
cmp byte [ebp - 0x82e], 0
je 0x47f226
xor edx, edx
mov dl, byte [ebp - 0x82e]
cmp edx, 0x5c
jne 0x47f25e
cmp byte [ebp - 0x82d], 0
jne 0x47f25e
lea eax, [ebp - 0x830]
call fcn.0040bf64
push 0
lea edx, [ebp - 0x430]
push 0xffffffffffffffff
push edx
push 0
push 2
push edi
push 1
lea edx, [ebp - 0x830]
xor ecx, ecx
mov eax, esi
call fcn.0047f2ec
cmp edi, 0xffffffff
je 0x47f258
inc edi
mov byte [ebp - 5], 1
jmp 0x47f28a
push 0
lea eax, [ebp - 0x430]
push 0xffffffffffffffff
push eax
push 0
push 2
push 0xffffffffffffffff
push 1
mov eax, esi
lea edx, [ebp - 0x830]
mov ecx, 5
call fcn.0047f2ec
cmp edi, 0xffffffff
jne 0x47f28a
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x18]
push edx
push 1
mov ecx, dword [ebp - 0x14]
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
je 0x47f08b
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
push ebx
mov eax, dword [ebx]
call dword [eax + 8]
cmp dword [ebp - 0x10], 0
je 0x47f2c9
push dword [ebp - 0x10]
mov edx, dword [0x4caa0c]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
cmp dword [ebp - 0xc], 0
je 0x47f2dd
push dword [ebp - 0xc]
mov eax, dword [0x4caa0c]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4