Function at 0x517510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0
je 0x517530
jmp 0x517616
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
je 0x51754e
cmp dword [ebp - 0x1c], 0x225
je 0x5175ff
jmp 0x517614
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x51755f
jmp 0x5175f4
mov ecx, 0x3c0
mov word [ebp - 8], cx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
movsx eax, word [ebp + 0xc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x517586
cmp dword [ebp - 0x20], 0x132
je 0x5175ee
jmp 0x5175f2
movsx ecx, word [ebp + 0xc]
cmp ecx, 0x723
jle 0x5175ec
movsx edx, word [ebp + 0xc]
add edx, 0x308
cmp edx, 0x137
je 0x5175ec
mov eax, dword [ebp + 8]
sub eax, 0xba4c
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x14]
push edx
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00517510
add esp, 0x10
mov edx, dword [ebp + 0x10]
and edx, 0x871
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.COMCTL32.dll_MakeDragList]
mov dword [ebp - 0x48], eax
push 0xdb
call fcn.005169c0
jmp 0x5175f2
mov byte [ebp + 0x14], 0x72
jmp 0x5175fd
mov ecx, dword [ebp + 0x10]
sar ecx, 8
mov dword [ebp - 0x14], ecx
jmp 0x517614
push 0x25
push 0xc5
push 0x60
mov edx, dword [ebp - 0x4c]
push edx
call sub.COMCTL32.dll_DefSubclassProc
mov dword [ebp - 0x50], eax
jmp 0x517623
movzx eax, word [ebp - 8]
push eax
call fcn.005160f0
add esp, 4
mov cl, byte [ebp + 0x14]
mov byte [ebp - 2], cl
lea edx, [ebp - 8]
mov dword [ebp - 0x54], edx
mov byte [ebp - 1], 0x4d
lea eax, [ebp - 8]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 1]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
cdq
mov ecx, 0x67
idiv ecx
movzx edx, byte [ebp - 1]
cmp eax, edx
jne 0x517679
mov eax, dword [ebp + 8]
shl eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 0x10], ecx
lea edx, [ebp - 0x94]
push edx
call dword [sym.imp.COMCTL32.dll_PropertySheetA]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
xor eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
or ecx, dword [ebp - 0x34]
cmp eax, ecx
jne 0x51769d
mov edx, dword [ebp - 0x18]
mov al, byte [edx]
mov byte [ebp - 9], al
lea ecx, [ebp - 8]
mov dword [ebp - 0x40], ecx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x38], edx
movzx ecx, byte [ebp - 1]
movzx edx, byte [ebp - 9]
add ecx, edx
mov eax, dword [ebp - 0x18]
mov byte [eax], cl
mov cl, byte [ebp - 2]
mov byte [ebp + 0x14], cl
mov cl, byte [ebp - 2]
call fcn.00515e10
mov edx, dword [ebp - 0x18]
mov al, byte [edx]
mov byte [ebp - 0x24], al
cmp byte [ebp - 0x24], 0x18
je 0x517703
cmp byte [ebp - 0x24], 0x79
je 0x5176d0
jmp 0x517715
lea ecx, [ebp - 1]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp + 8]
sub edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 1]
and ecx, edx
mov eax, dword [ebp - 0x18]
mov byte [eax], cl
jmp 0x517715
mov ecx, dword [ebp - 0x3c]
movzx edx, word [ecx]
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
add edx, ecx
mov word [ebp - 8], dx
mov eax, 0xcc
mov esp, ebp
pop ebp
ret