Function at 0x417e30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
mov eax, 0x503d50
call fcn.004e1300
mov dl, byte [0x4fdf5c]
test dl, dl
jne 0x417e6e
mov word [ebp - 0x40], 8
mov edx, 0x4ff30d
mov eax, 0x4fdf58
call fcn.004f4164
inc dword [ebp - 0x34]
dec dword [ebp - 0x34]
inc byte [0x4fdf5c]
mov ecx, dword [0x4fdf58]
test ecx, ecx
sete al
and eax, 1
test al, al
je 0x4180f4
mov word [ebp - 0x40], 0x20
mov edx, 0x4ff30e
lea eax, [ebp - 4]
call fcn.004f4164
inc dword [ebp - 0x34]
mov word [ebp - 0x40], 0x14
mov word [ebp - 0x40], 0x2c
mov edx, 0x4ff317
lea eax, [ebp - 8]
call fcn.004f4164
inc dword [ebp - 0x34]
push dword [eax]
xor edx, edx
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 0xc]
push ecx
inc dword [ebp - 0x34]
call fcn.0041b814
add esp, 8
lea edx, [ebp - 0xc]
mov eax, 0x4fdf58
call fcn.004f4338
dec dword [ebp - 0x34]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004f4308
dec dword [ebp - 0x34]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004f4308
mov ecx, dword [0x4fdf58]
test ecx, ecx
je 0x417f66
mov word [ebp - 0x40], 0x38
xor eax, eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x10]
inc dword [ebp - 0x34]
mov eax, dword [0x4fdf58]
call fcn.004d9860
lea eax, [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x14]
inc dword [ebp - 0x34]
lea edx, [ebp - 4]
call fcn.004f4360
lea edx, [ebp - 0x14]
mov eax, 0x4fdf58
call fcn.004f4338
dec dword [ebp - 0x34]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004f4308
dec dword [ebp - 0x34]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004f4308
jmp 0x418067
mov ecx, dword [0x50c624]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
test edx, edx
jne 0x417fad
mov word [ebp - 0x40], 0x44
mov edx, 0x4ff31f
lea eax, [ebp - 0x18]
call fcn.004f4164
inc dword [ebp - 0x34]
lea edx, [ebp - 0x18]
mov eax, 0x4fdf58
call fcn.004f4338
dec dword [ebp - 0x34]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004f4308
jmp 0x418067
lea ecx, [ebp - 0x54]
push ecx
push 0x1a
mov eax, dword [0x50c624]
mov edx, dword [eax]
mov eax, dword [edx + 0x38]
call fcn.004a9d94
push eax
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
test eax, eax
jne 0x418067
lea edx, [ebp - 0x180]
push edx
push dword [ebp - 0x54]
call sub.SHELL32.DLL_SHGetPathFromIDListA
test eax, eax
je 0x41805f
mov word [ebp - 0x40], 0x50
lea edx, [ebp - 0x180]
lea eax, [ebp - 0x1c]
call fcn.004f4164
inc dword [ebp - 0x34]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0x20], edx
lea edx, [ebp - 0x20]
inc dword [ebp - 0x34]
call fcn.004d9860
lea eax, [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x24]
inc dword [ebp - 0x34]
lea edx, [ebp - 4]
call fcn.004f4360
lea edx, [ebp - 0x24]
mov eax, 0x4fdf58
call fcn.004f4338
dec dword [ebp - 0x34]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004f4308
dec dword [ebp - 0x34]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004f4308
dec dword [ebp - 0x34]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004f4308
push dword [ebp - 0x54]
call sub.OLE32.DLL_CoTaskMemFree
mov ecx, dword [0x4fdf58]
test ecx, ecx
sete al
and eax, 1
test al, al
je 0x4180d4
mov word [ebp - 0x40], 0x5c
xor edx, edx
mov dword [ebp - 0x28], edx
lea ecx, [ebp - 0x28]
push ecx
inc dword [ebp - 0x34]
call fcn.0041bf60
pop ecx
lea eax, [ebp - 0x28]
xor edx, edx
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x2c]
inc dword [ebp - 0x34]
lea edx, [ebp - 4]
call fcn.004f4360
lea edx, [ebp - 0x2c]
mov eax, 0x4fdf58
call fcn.004f4338
dec dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004f4308
dec dword [ebp - 0x34]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004f4308
mov eax, dword [0x4fdf58]
call fcn.0046dc58
dec dword [ebp - 0x34]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004f4308
mov word [ebp - 0x40], 0
mov word [ebp - 0x40], 0x68
mov edx, 0x4fdf58
mov eax, dword [ebp + 8]
call fcn.004f4338
mov eax, dword [ebp + 8]
inc dword [ebp - 0x34]
mov edx, dword [ebp - 0x50]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret