Function at 0x516630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov ax, word [ebp + 0x14]
mov word [ebp - 8], ax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], ecx
movzx edx, word [ebp - 8]
movzx eax, word [ebp + 0x14]
sub edx, eax
movzx ecx, word [ebp + 0x18]
cmp edx, ecx
jge 0x51670d
movzx edx, word [ebp - 8]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0x95a
je 0x51666c
jmp 0x5166e7
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
mov dword [ebp - 0x4c], eax
movzx edx, word [ebp + 0x18]
push edx
movzx eax, word [ebp - 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00516630
add esp, 0x14
movzx ecx, word [ebp + 0x18]
movzx edx, word [ebp + 0x14]
add ecx, edx
mov word [ebp - 8], cx
movzx eax, word [ebp + 0x14]
push eax
movzx ecx, word [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00516630
add esp, 0x14
movzx edx, word [ebp + 0x18]
movzx eax, word [ebp + 0x14]
and edx, eax
mov word [ebp - 8], dx
push 0x50
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.COMCTL32.dll_DrawInsert]
jmp 0x51670d
movzx eax, word [ebp + 0x14]
push eax
movzx ecx, word [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00516630
add esp, 0x14
mov dx, word [ebp - 8]
mov word [ebp + 0x14], dx
mov ax, word [ebp - 8]
mov word [ebp - 0xc], ax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
movzx edx, word [ebp - 8]
movzx eax, word [ebp + 0x18]
xor edx, eax
movzx eax, word [ebp - 0xc]
movzx ecx, word [ebp + 0x14]
shl eax, cl
cmp edx, eax
jge 0x51673e
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x6c
call fcn.00516150
movzx edx, word [ebp - 8]
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0
je 0x51674d
jmp 0x516790
mov byte [ebp - 1], 0xe
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x51675f
jmp 0x516785
mov dword [ebp - 0x20], 0x2f86
movsx ecx, byte [ebp - 1]
cmp ecx, 0x73
jg 0x516783
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x58], edx
mov ax, word [ebp - 8]
mov word [ebp - 0x10], ax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
jmp 0x51678e
mov edx, dword [ebp - 0x1c]
or edx, dword [ebp + 0x10]
mov dword [ebp - 0x24], edx
jmp 0x5167a7
push 1
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.COMCTL32.dll_LBItemFromPt]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 0
je 0x5167bb
jmp 0x5167d7
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
sar eax, cl
mov dword [ebp - 0x20], eax
mov ecx, 0x3a1
mov word [ebp - 0x14], cx
jmp 0x5167ee
movzx edx, word [ebp + 0x18]
movzx eax, word [ebp - 0x10]
add edx, eax
mov ecx, dword [ebp - 0x28]
mov word [ecx], dx
push 0x1c
call fcn.005169c0
mov edx, dword [ebp - 0x28]
mov ax, word [edx]
mov word [ebp - 0x18], ax
mov byte [ebp - 2], 0xb0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x64], ecx
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
sub ecx, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
mov eax, 0xcf
mov esp, ebp
pop ebp
ret