Function at 0x516150
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, 0x337
mov word [ebp - 8], ax
movsx ecx, word [ebp - 8]
cmp ecx, 0x3e6
jl 0x5161a3
mov dword [ebp + 0xc], 0xa4be
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.COMCTL32.dll_MakeDragList]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, byte [ebp + 8]
push ecx
call fcn.00516150
movsx edx, word [ebp - 8]
add edx, 0x427
mov word [ebp - 8], dx
jmp 0x5165ff
mov eax, 0xed5
mov word [ebp - 0x10], ax
movsx ecx, word [ebp - 8]
and ecx, 0x654
cmp ecx, 0x1de
jg 0x516214
mov byte [ebp + 8], 0x75
movzx edx, word [ebp - 0x10]
or edx, 0x91c
mov word [ebp - 0x10], dx
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x56d
je 0x51620a
cmp dword [ebp - 0x48], 0xb87
je 0x5161eb
jmp 0x516214
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.COMCTL32.dll_MakeDragList]
mov dword [ebp - 0x80], eax
movzx edx, word [ebp - 0x10]
push edx
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp + 8]
call fcn.00516f50
jmp 0x516214
movzx eax, word [ebp - 0x10]
sar eax, 1
mov word [ebp - 0x10], ax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
xor edx, 0x2c83
cmp edx, dword [ebp + 0xc]
jbe 0x516281
mov ax, word [ebp - 0x10]
mov word [ebp - 0x18], ax
mov cl, byte [ebp + 8]
mov byte [ebp - 0x4c], cl
cmp byte [ebp - 0x4c], 0
je 0x516244
cmp byte [ebp - 0x4c], 0x6b
je 0x516260
jmp 0x516281
mov byte [ebp - 1], 0xb7
mov dword [ebp - 0x20], 0x359e
lea edx, [ebp - 0x28]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x84], eax
jmp 0x516281
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
mov dword [ebp - 0x8c], eax
movzx eax, byte [ebp - 1]
push eax
call fcn.005169c0
movsx ecx, word [ebp - 8]
cmp ecx, 0x500
jg 0x5162e0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
shl eax, cl
cmp eax, dword [ebp + 0xc]
jb 0x5162cc
lea ecx, [ebp - 1]
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
lea edx, [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov al, byte [ebp + 8]
mov byte [ebp - 0xa], al
lea ecx, [ebp - 8]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x24]
mov al, byte [edx]
mov byte [ebp - 9], al
jmp 0x5162de
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
movzx eax, word [ebp - 0x10]
add edx, eax
mov ecx, dword [ebp - 0x1c]
mov word [ecx], dx
jmp 0x51631a
movzx edx, byte [ebp - 1]
cmp edx, 0x1c
jge 0x51631a
mov eax, dword [ebp - 0x34]
and eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp + 0xc], edx
push 1
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0xac]
push ecx
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.COMCTL32.dll_LBItemFromPt]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0x76d0
je 0x516351
cmp dword [ebp - 0x50], 0xd54e
je 0x5163de
jmp 0x516464
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x8b93
je 0x5163a1
cmp dword [ebp - 0x54], 0xf9f6
je 0x51636b
jmp 0x5163d9
movsx ecx, byte [ebp + 8]
sub ecx, 0x5b
movsx edx, byte [ebp - 0xa]
cmp ecx, edx
jne 0x516399
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 1]
add ecx, edx
mov eax, dword [ebp - 0x24]
mov byte [eax], cl
mov ecx, dword [ebp - 0x24]
movzx edx, byte [ecx]
push edx
call fcn.005169c0
jmp 0x51639f
mov eax, dword [ebp - 0x28]
mov dword [ebp + 0xc], eax
jmp 0x5163d9
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
movzx eax, byte [ebp - 0xa]
push eax
call fcn.00516150
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
sub edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
mov dword [eax], edx
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
mov dword [ebp - 0x60], eax
jmp 0x516464
mov ecx, dword [ebp + 0xc]
or ecx, dword [ebp - 0x34]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
xor eax, dword [ebp - 0x20]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x20]
sar edx, cl
mov eax, dword [ebp - 0x3c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x38]
movsx edx, word [ecx]
shl edx, 0xb3
movsx eax, word [ebp - 8]
cmp edx, eax
jge 0x516464
movzx ecx, word [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx]
and ecx, eax
mov word [ebp - 0x18], cx
push 1
mov ecx, dword [ebp - 0xb0]
push ecx
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.COMCTL32.dll_LBItemFromPt]
mov dword [ebp - 0x30], eax
movzx ecx, byte [ebp - 1]
movzx edx, byte [ebp - 9]
add ecx, edx
mov eax, dword [ebp - 0x24]
mov byte [eax], cl
mov ecx, dword [ebp + 0xc]
push ecx
movzx edx, byte [ebp - 0xa]
push edx
call fcn.00516150
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp + 0xc], ecx
lea edx, [ebp - 0xa]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0x70], eax
movzx ecx, byte [ebp - 9]
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx]
add ecx, eax
movzx edx, byte [ebp - 1]
cmp ecx, edx
je 0x516598
lea eax, [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x30], edx
lea eax, [ebp - 0x58]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x68], edx
cmp dword [ebp - 0x68], 0
je 0x5164bf
jmp 0x516589
mov eax, dword [ebp - 0x38]
movsx ecx, word [eax]
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x5c], 0xb3
je 0x516573
cmp dword [ebp - 0x5c], 0x45d
je 0x5164e3
jmp 0x516587
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx]
movzx ecx, word [ebp - 0x10]
add eax, ecx
movzx edx, word [ebp - 0x18]
cmp eax, edx
je 0x516571
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x64]
mov dword [ecx], eax
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx]
movzx ecx, byte [ebp - 9]
sub eax, ecx
mov byte [ebp - 1], al
push 0x86
push 0x75
push 0x62
mov edx, dword [ebp - 0x44]
push edx
call sub.COMCTL32.dll_DefSubclassProc
mov dword [ebp - 0x78], eax
movsx eax, word [ebp - 8]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0x1d3
je 0x516538
jmp 0x51655d
movzx ecx, word [ebp - 0x10]
movzx edx, word [ebp - 0x18]
xor ecx, edx
mov eax, dword [ebp - 0x1c]
mov word [eax], cx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x20]
sar eax, cl
mov dword [ebp - 0x30], eax
jmp 0x516571
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
push edx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x74]
mov cl, byte [eax]
call fcn.00516f50
jmp 0x516587
lea ecx, [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0xa0]
push edx
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
mov dword [ebp - 0x60], eax
jmp 0x516598
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x34]
mov ecx, dword [eax]
shl edx, cl
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
movzx ecx, word [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx]
sub ecx, eax
movzx edx, word [ebp - 0x10]
cmp ecx, edx
jle 0x5165ae
jmp 0x5165bd
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 1]
sub ecx, edx
mov byte [ebp - 9], cl
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax]
movzx edx, word [ebp - 0x10]
and ecx, edx
mov eax, dword [ebp - 0x1c]
mov word [eax], cx
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.COMCTL32.dll_MakeDragList]
mov dword [ebp - 0xa4], eax
movzx edx, word [ebp - 8]
push edx
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
push ecx
movzx edx, byte [ebp - 9]
push edx
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
push ecx
call fcn.00516820
add esp, 0x10
movzx edx, word [ebp - 8]
push edx
movzx eax, word [ebp - 8]
push eax
push 0x37
movzx ecx, word [ebp - 8]
push ecx
call fcn.00516820
add esp, 0x10
mov eax, 0x73
mov esp, ebp
pop ebp
ret 8