Function at 0x516f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov word [ebp - 0x14], dx
mov byte [ebp - 8], cl
mov byte [ebp - 1], 0xaf
movzx eax, byte [ebp - 1]
cmp eax, 0x9d
jg 0x516f91
movzx ecx, byte [ebp - 1]
sub ecx, 0xd9
mov byte [ebp - 1], cl
mov cl, byte [ebp - 8]
call fcn.00515e10
movzx edx, byte [ebp - 1]
add edx, 0xf7
mov byte [ebp - 1], dl
mov ax, word [ebp - 0x14]
mov word [ebp - 0x18], ax
movzx ecx, word [ebp - 0x18]
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x5c], 0x77c
je 0x516fab
jmp 0x516fff
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x60], 0x800
je 0x516fd3
jmp 0x516fda
mov dword [ebp - 0x20], 0x3718
movzx eax, byte [ebp - 1]
cdq
mov ecx, 0xba
idiv ecx
cmp eax, 0xf0
je 0x516ffa
movzx edx, word [ebp - 0x18]
push edx
call fcn.005160f0
add esp, 4
jmp 0x517442
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 1]
mov dword [ebp - 0x40], ecx
movzx edx, word [ebp - 0x18]
mov dword [ebp - 0x64], edx
cmp dword [ebp - 0x64], 0
je 0x51701d
jmp 0x5173a6
mov dword [ebp - 0x2c], 0xf987
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x30], ecx
mov dl, byte [ebp - 8]
mov byte [ebp - 9], dl
mov eax, 0x768
mov word [ebp - 0x10], ax
mov cl, byte [ebp - 1]
mov byte [ebp - 0xa], cl
lea edx, [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
movzx ecx, word [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx]
and ecx, eax
movzx edx, word [ebp + 8]
movzx eax, word [ebp - 0x14]
add edx, eax
cmp ecx, edx
je 0x517097
mov cl, byte [ebp - 9]
mov byte [ebp - 8], cl
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x84]
push eax
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
add edx, dword [ecx]
mov eax, dword [ebp - 0x30]
mov dword [eax], edx
jmp 0x5170e2
movsx ecx, byte [ebp - 9]
sub ecx, 0x5e
movsx edx, byte [ebp - 8]
cmp ecx, edx
jne 0x5170e2
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
mov edx, dword [edx]
mov ecx, dword [eax]
shl edx, cl
mov eax, dword [ebp - 0x24]
mov dword [eax], edx
push 0
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.COMCTL32.dll_LBItemFromPt]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x68], ecx
cmp dword [ebp - 0x68], 0xf987
je 0x5170f6
jmp 0x517243
movzx edx, byte [ebp - 0xa]
mov eax, dword [ebp - 0x40]
movzx ecx, byte [eax]
imul edx, ecx
movzx eax, byte [ebp - 1]
cmp edx, eax
je 0x51715d
movzx ecx, word [ebp - 0x18]
movzx edx, word [ebp - 0x14]
and ecx, edx
movzx eax, word [ebp + 8]
mov edx, dword [ebp - 0x1c]
movzx edx, word [edx]
add eax, edx
cmp ecx, eax
je 0x517143
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
mov cl, byte [ebp - 9]
call fcn.00515e10
mov edx, dword [ebp - 0x40]
movzx eax, byte [edx]
push eax
call fcn.005169c0
jmp 0x51715d
movsx ecx, word [ebp - 0x10]
cmp ecx, 0x600
jl 0x51715d
mov dl, byte [ebp - 1]
mov byte [ebp - 0x25], dl
mov ax, word [ebp - 0x14]
mov word [ebp - 0x48], ax
movsx ecx, byte [ebp - 9]
sub ecx, 0x54
movsx edx, byte [ebp - 8]
cmp ecx, edx
je 0x517208
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov dword [ebp - 0x6c], ecx
movsx edx, word [ebp - 0x10]
cmp edx, 0x48b
jl 0x517186
jmp 0x5171b1
mov eax, dword [ebp - 0x1c]
movzx edx, word [eax]
movzx eax, word [ebp - 0x18]
or edx, eax
movzx eax, word [ebp - 0x48]
movzx ecx, word [ebp - 0x14]
sar eax, cl
cmp edx, eax
jge 0x5171b1
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
add eax, dword [edx]
mov dword [ebp - 0x6c], eax
movzx ecx, word [ebp - 0x18]
movzx edx, word [ebp - 0x14]
xor ecx, edx
mov eax, dword [ebp - 0x1c]
mov word [eax], cx
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
push edx
mov edx, dword [ebp - 0x18]
mov cl, byte [ebp - 9]
call fcn.00516f50
push 0
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.COMCTL32.dll_LBItemFromPt]
mov dword [ebp - 0x20], eax
movzx eax, byte [ebp - 0xa]
movzx ecx, byte [ebp - 0x25]
shl eax, cl
mov byte [ebp - 1], al
mov ecx, dword [ebp - 0x38]
and ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x24]
mov dword [edx], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0x1c]
push edx
push fcn.005160f0
mov eax, dword [ebp - 0x90]
push eax
call sub.COMCTL32.dll_RemoveWindowSubclass
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
sub edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x30]
mov dword [eax], edx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x38], ecx
jmp 0x517304
mov dx, word [ebp - 0x18]
mov word [ebp - 0x14], dx
movzx eax, word [ebp - 0x10]
push eax
movzx ecx, word [ebp - 0x10]
push ecx
movzx edx, byte [ebp - 0xa]
push edx
movzx eax, word [ebp - 0x10]
push eax
call fcn.00516820
add esp, 0x10
movzx ecx, word [ebp - 0x18]
movzx edx, word [ebp + 8]
and ecx, edx
mov eax, dword [ebp - 0x1c]
mov word [eax], cx
movsx ecx, word [ebp - 0x10]
mov dword [ebp - 0x70], ecx
cmp dword [ebp - 0x70], 0x594
je 0x517289
jmp 0x5172f9
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.COMCTL32.dll_MakeDragList]
mov dword [ebp - 0x4c], eax
movsx eax, word [ebp - 0x10]
imul ecx, eax, 0x562
cmp ecx, 0x34a
jne 0x5172f7
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 0x40]
movzx ecx, byte [eax]
sub edx, ecx
mov byte [ebp - 0xa], dl
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x38]
add eax, dword [edx]
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx]
push eax
mov ecx, dword [ebp - 0x1c]
mov dx, word [ecx]
mov cl, byte [ebp - 8]
call fcn.00516f50
movsx edx, word [ebp - 0x10]
sub edx, 0x3a5
mov word [ebp - 0x10], dx
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.COMCTL32.dll_PropertySheetA]
mov dword [ebp - 0x44], eax
jmp 0x517304
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
mov dword [edx], ecx
movsx eax, word [ebp - 0x10]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x204
je 0x517322
cmp dword [ebp - 0x50], 0x7c4
je 0x51738a
jmp 0x5173a4
mov ecx, dword [ebp - 0x40]
movzx edx, byte [ecx]
movzx ecx, byte [ebp - 1]
sar edx, cl
mov byte [ebp - 0xa], dl
movzx eax, word [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
mov dx, word [ecx]
mov cl, byte [ebp - 9]
call fcn.00516f50
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx]
movzx ecx, word [ebp - 0x18]
or eax, ecx
mov edx, dword [ebp - 0x1c]
mov word [edx], ax
movsx eax, word [ebp - 0x10]
cmp eax, 0x6d0
jne 0x51737d
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x3c]
xor edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
mov dword [eax], edx
jmp 0x5173a4
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
push edx
mov edx, dword [ebp - 0x18]
mov cl, byte [ebp - 8]
call fcn.00516f50
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
jmp 0x5173c5
movzx edx, word [ebp - 0x18]
movzx eax, word [ebp - 0x14]
sub edx, eax
movzx ecx, word [ebp + 8]
cmp edx, ecx
jge 0x5173c5
movzx edx, word [ebp - 0x14]
push edx
call fcn.005160f0
add esp, 4
movzx eax, word [ebp - 0x18]
push eax
movzx ecx, word [ebp - 0x18]
push ecx
push 0x7b
push 0x15
push 0x5a
call fcn.00516630
add esp, 0x14
movsx edx, byte [ebp - 8]
cmp edx, 0x27
jg 0x517433
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
or ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dword [edx], ecx
mov al, byte [ebp - 1]
mov byte [ebp - 0x74], al
cmp byte [ebp - 0x74], 0xb2
je 0x517401
jmp 0x517429
push 0x25
push 0xdd
push 0x8b
mov ecx, dword [ebp - 0x98]
push ecx
call sub.COMCTL32.dll_DefSubclassProc
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
jmp 0x517431
mov cx, word [ebp - 0x18]
mov word [ebp - 0x14], cx
jmp 0x517442
movzx edx, byte [ebp - 1]
add edx, 0x81
mov eax, dword [ebp - 0x40]
mov byte [eax], dl
push 0x41
push 0x93
movzx ecx, byte [ebp - 1]
push ecx
push 0x12
call fcn.00516820
add esp, 0x10
movzx edx, byte [ebp - 1]
and edx, 0x8a
mov byte [ebp - 1], dl
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.COMCTL32.dll_MakeDragList]
mov dword [ebp - 0xa0], eax
mov cl, byte [ebp - 1]
mov byte [ebp - 0x7c], cl
cmp byte [ebp - 0x7c], 0x56
je 0x517483
jmp 0x517485
jmp 0x51748d
mov dx, word [ebp - 0x18]
mov word [ebp - 0x14], dx
push 0x2d
push 0x4b
movzx eax, byte [ebp - 1]
push eax
push 0xa9
call fcn.00516820
add esp, 0x10
movzx ecx, byte [ebp - 1]
shl ecx, 0xa
cmp ecx, 0xf
jl 0x5174e2
mov byte [ebp - 8], 0x66
push 0
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.COMCTL32.dll_LBItemFromPt]
mov dword [ebp - 0x20], eax
mov cl, byte [ebp - 8]
call fcn.00515e10
movzx edx, byte [ebp - 1]
sar edx, 5
mov byte [ebp - 1], dl
movzx eax, byte [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0xa5
push 0xce
call fcn.00517510
add esp, 0x10
mov eax, 0xcb
mov esp, ebp
pop ebp
ret 4