Function at 0x515e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov byte [ebp - 8], cl
mov eax, 0xbeb
mov word [ebp - 0x10], ax
mov ecx, 0x1f5
mov word [ebp - 0xc], cx
movzx edx, word [ebp - 0x10]
cmp edx, 0x5d9
jl 0x51605d
mov byte [ebp - 1], 0xde
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov cx, word [ebp - 0xc]
mov word [ebp - 0x14], cx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
je 0x515e61
jmp 0x515f37
movsx eax, word [ebp - 0xc]
and eax, 0x6ec
movsx ecx, word [ebp - 0x14]
cmp eax, ecx
jle 0x515ebf
movzx edx, byte [ebp - 1]
xor edx, 0xc6
mov byte [ebp - 1], dl
movsx eax, word [ebp - 0xc]
sar eax, 3
mov word [ebp - 0x14], ax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x18]
or ecx, 0x409d
mov dword [ebp - 0x24], ecx
push 0x35
push 0xc
push 0x29
mov edx, dword [ebp - 0x4c]
push edx
call sub.COMCTL32.dll_DefSubclassProc
mov dword [ebp - 0x54], eax
jmp 0x515f35
movzx eax, byte [ebp - 1]
cmp eax, 0x15
je 0x515f35
movsx ecx, word [ebp - 0x14]
shl ecx, 0x39
movsx edx, word [ebp - 0xc]
cmp ecx, edx
jge 0x515f10
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x30b
je 0x515ee9
jmp 0x515f0e
movsx ecx, word [ebp - 0x14]
add ecx, 0x117
mov word [ebp - 0xc], cx
movzx edx, byte [ebp - 1]
sub edx, 0x33
mov byte [ebp - 1], dl
movzx eax, word [ebp - 0x10]
and eax, 0x18b
mov word [ebp - 0x10], ax
jmp 0x515f35
movsx ecx, byte [ebp - 8]
cmp ecx, 0x52
jl 0x515f35
lea edx, [ebp - 0xa0]
push edx
call dword [sym.imp.COMCTL32.dll_PropertySheetA]
mov dword [ebp - 0x28], eax
movzx eax, byte [ebp - 1]
add eax, 0xaf
mov byte [ebp - 1], al
jmp 0x515f9a
push 0x95
lea ecx, [ebp - 0x44]
push ecx
push fcn.00516f50
mov edx, dword [ebp - 0x48]
push edx
call sub.COMCTL32.dll_SetWindowSubclass
mov dword [ebp - 0x58], eax
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x667
je 0x515f6c
cmp dword [ebp - 0x2c], 0x775
je 0x515f8f
jmp 0x515f9a
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x18]
jl 0x515f8d
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
movzx eax, word [ebp - 0x10]
push eax
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp - 8]
call fcn.00516f50
jmp 0x515f9a
movsx ecx, word [ebp - 0x14]
sub ecx, 0x5c
mov word [ebp - 0xc], cx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x1c], edx
mov ax, word [ebp - 0x10]
mov word [ebp - 0x20], ax
movzx ecx, byte [ebp - 1]
cmp ecx, 0x7b
jne 0x516007
mov cl, byte [ebp - 8]
call fcn.00515e10
mov byte [ebp - 8], 0x42
push 1
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.COMCTL32.dll_LBItemFromPt]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
sar eax, cl
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov cl, byte [ebp - 8]
call fcn.00515e10
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
xor eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
shl eax, cl
mov dword [ebp - 0x24], eax
jmp 0x51605b
movzx ecx, word [ebp - 0x10]
add ecx, 0x74e
movzx edx, word [ebp - 0x20]
cmp ecx, edx
jge 0x51605b
movzx eax, word [ebp - 0x20]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x989
je 0x516034
cmp dword [ebp - 0x30], 0x9cb
je 0x516050
jmp 0x51605b
push 0x61
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.COMCTL32.dll_DrawInsert]
movzx eax, byte [ebp - 1]
push eax
call fcn.005169c0
jmp 0x51605b
mov ecx, dword [ebp - 0x28]
or ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [edx], ecx
jmp 0x5160a1
movzx eax, word [ebp - 0x10]
sub eax, 0xc4
cmp eax, 0x791
jge 0x5160a1
movsx ecx, byte [ebp - 8]
cmp ecx, 0x7c
je 0x5160a1
movsx edx, word [ebp - 0xc]
add edx, 0x617
mov word [ebp - 0xc], dx
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.COMCTL32.dll_MakeDragList]
mov dword [ebp - 0x64], eax
movzx ecx, word [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp - 8]
call fcn.00516f50
lea edx, [ebp - 0xd4]
push edx
call dword [sym.imp.COMCTL32.dll_PropertySheetA]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x1696
je 0x5160dd
cmp dword [ebp - 0x34], 0x4239
je 0x5160cb
jmp 0x5160e1
movzx ecx, word [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp - 8]
call fcn.00516f50
jmp 0x5160e1
mov byte [ebp - 8], 0x77
mov eax, 0x42
mov esp, ebp
pop ebp
ret