Function at 0x5169c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push esi
mov eax, 0x1fd
mov word [ebp - 0x10], ax
mov cl, byte [ebp + 8]
mov byte [ebp - 2], cl
mov byte [ebp - 1], 0x24
mov dl, byte [ebp - 2]
mov byte [ebp - 0x5c], dl
cmp byte [ebp - 0x5c], 0x54
je 0x516a2e
cmp byte [ebp - 0x5c], 0xce
je 0x5169f1
jmp 0x516a58
movzx eax, byte [ebp - 1]
push eax
push 5
movzx ecx, word [ebp - 0x10]
push ecx
push 0x5e
call fcn.00517510
add esp, 0x10
movzx edx, byte [ebp + 8]
add edx, 0x4c
mov byte [ebp - 2], dl
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
mov dword [ebp - 0x94], eax
jmp 0x516a58
mov al, byte [ebp + 8]
mov byte [ebp - 0x60], al
cmp byte [ebp - 0x60], 0x21
je 0x516a42
cmp byte [ebp - 0x60], 0x52
je 0x516a4e
jmp 0x516a58
push 0x64
call fcn.005160f0
add esp, 4
jmp 0x516a58
movsx ecx, byte [ebp - 1]
sub ecx, 0x23
mov byte [ebp - 1], cl
lea edx, [ebp - 0x10]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 1]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 2]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x14]
mov ax, word [edx]
mov word [ebp - 0x18], ax
mov ecx, dword [ebp - 0x14]
movsx edx, word [ecx]
movsx eax, word [ebp - 0x10]
imul edx, eax
movsx ecx, word [ebp - 0x18]
cmp edx, ecx
jle 0x516f1c
mov edx, 0x6a0
mov word [ebp - 8], dx
mov al, byte [ebp - 2]
mov byte [ebp - 0xb], al
mov dword [ebp - 0x2c], 0x5a61
mov dword [ebp - 0x24], 0x3367
mov ecx, dword [ebp - 0x14]
movsx edx, word [ecx]
mov dword [ebp - 0x80], edx
cmp dword [ebp - 0x80], 0x343
je 0x516ac1
jmp 0x516b4d
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
mov dword [ebp - 0xa8], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x64], edx
cmp dword [ebp - 0x64], 0xe428
je 0x516af2
cmp dword [ebp - 0x64], 0xf950
je 0x516b27
jmp 0x516b48
movzx eax, byte [ebp - 2]
movzx ecx, byte [ebp + 8]
shl eax, cl
mov ecx, dword [ebp - 0x1c]
mov byte [ecx], al
mov cl, byte [ebp - 1]
call fcn.00515e10
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx]
movzx ecx, byte [ebp + 8]
or eax, ecx
mov edx, dword [ebp - 0x1c]
mov byte [edx], al
movzx eax, word [ebp - 8]
sar eax, 3
mov word [ebp - 8], ax
jmp 0x516b48
push 0xd7
push 0xf0
push 0x85
mov ecx, dword [ebp - 0xac]
push ecx
call sub.COMCTL32.dll_DefSubclassProc
mov dword [ebp - 0xb0], eax
jmp 0x516bd8
mov edx, dword [ebp - 0x14]
movsx eax, word [edx]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0x10a
je 0x516bc9
cmp dword [ebp - 0x68], 0x1fd
je 0x516b6a
jmp 0x516bd8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x84], ecx
cmp dword [ebp - 0x84], 0x5a61
je 0x516b81
jmp 0x516b95
lea edx, [ebp - 0x24]
mov dword [ebp - 0x3c], edx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov cl, byte [ebp - 1]
mov byte [ebp - 9], cl
jmp 0x516bc7
movzx edx, word [ebp - 8]
push edx
movzx eax, word [ebp - 8]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00516630
add esp, 0x14
mov edx, dword [ebp - 0x14]
movsx eax, word [edx]
movsx ecx, word [ebp - 0x18]
xor eax, ecx
mov edx, dword [ebp - 0x14]
mov word [edx], ax
jmp 0x516bd8
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 2]
sub ecx, edx
mov byte [ebp - 0xb], cl
mov ax, word [ebp - 8]
mov word [ebp - 0x20], ax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x44], edx
mov al, byte [ebp + 8]
mov byte [ebp - 0xa], al
lea ecx, [ebp - 8]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x28]
add eax, dword [edx]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x34]
imul edx, dword [ecx]
cmp eax, edx
jg 0x516cee
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax]
mov byte [ebp - 0x88], cl
cmp byte [ebp - 0x88], 0
je 0x516c3c
jmp 0x516cde
mov edx, dword [ebp - 0x14]
movsx eax, word [edx]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0x1fd
je 0x516c5c
cmp dword [ebp - 0x6c], 0x317
je 0x516cc1
jmp 0x516cdc
movzx ecx, word [ebp - 0x20]
movzx edx, word [ebp - 8]
and ecx, edx
mov eax, dword [ebp - 0x70]
movzx edx, word [eax]
cmp ecx, edx
jl 0x516cbf
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov dword [ebp - 0x8c], edx
cmp dword [ebp - 0x8c], 0x5a61
je 0x516c92
jmp 0x516cb0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x50], ecx
lea edx, [ebp - 0x34]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
mov dword [ebp - 0x48], ecx
lea edx, [ebp - 8]
mov dword [ebp - 0x78], edx
jmp 0x516cbf
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 2]
add ecx, edx
mov byte [ebp - 0xb], cl
jmp 0x516cdc
lea eax, [ebp - 0x40]
push eax
push fcn.00516820
mov ecx, dword [ebp - 0xb4]
push ecx
call sub.COMCTL32.dll_RemoveWindowSubclass
mov dword [ebp - 0xb8], eax
jmp 0x516cee
movsx edx, word [ebp - 0x10]
movsx eax, word [ebp - 0x18]
sub edx, eax
mov ecx, dword [ebp - 0x14]
mov word [ecx], dx
movsx edx, byte [ebp - 1]
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
add edx, ecx
movsx eax, byte [ebp - 9]
cmp edx, eax
jg 0x516d8d
mov edx, dword [ebp - 0x38]
or edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x24]
mov ecx, dword [eax]
shr esi, cl
cmp edx, esi
jbe 0x516d67
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax]
push ecx
call fcn.00516150
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
movsx ecx, byte [ebp - 9]
sub eax, ecx
mov byte [ebp - 1], al
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add eax, dword [edx]
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
lea edx, [ebp - 0xf4]
push edx
call dword [sym.imp.COMCTL32.dll_PropertySheetA]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x40]
add ecx, dword [edx]
mov dword [ebp - 0x48], ecx
jmp 0x516d8b
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
shl eax, cl
mov ecx, dword [ebp - 0x48]
and ecx, dword [ebp - 0x2c]
cmp eax, ecx
jl 0x516d8b
mov edx, dword [ebp - 0x70]
movzx eax, word [edx]
mov ecx, dword [ebp - 0x78]
movzx edx, word [ecx]
sub eax, edx
mov word [ebp - 0x20], ax
jmp 0x516da8
lea eax, [ebp - 0xa]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
imul edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ecx]
and eax, dword [edx]
mov ecx, dword [ebp - 0x50]
add ecx, dword [ebp - 0x38]
cmp eax, ecx
jae 0x516e86
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x44]
mov edx, dword [edx]
mov ecx, dword [eax]
shl edx, cl
mov dword [ebp - 0x48], edx
movzx eax, word [ebp - 0x20]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x6a0
je 0x516de7
jmp 0x516de9
jmp 0x516e53
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x58]
mov ecx, dword [edx]
sub ecx, dword [eax]
mov edx, dword [ebp - 0x40]
mov dword [edx], ecx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0x15af
je 0x516e1b
cmp dword [ebp - 0x74], 0x89ce
je 0x516e34
jmp 0x516e53
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x98]
push edx
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
mov dword [ebp - 0x94], eax
jmp 0x516e53
mov eax, dword [ebp - 0x14]
movsx ecx, word [eax]
movsx edx, word [ebp - 0x18]
add ecx, edx
mov word [ebp - 0x10], cx
movsx eax, byte [ebp - 9]
movsx ecx, byte [ebp - 1]
add eax, ecx
mov edx, dword [ebp - 0x4c]
mov byte [edx], al
lea eax, [ebp - 0x54]
push eax
push fcn.00516150
mov ecx, dword [ebp - 0xc0]
push ecx
call sub.COMCTL32.dll_RemoveWindowSubclass
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x58]
mov ecx, dword [edx]
and ecx, dword [eax]
mov edx, dword [ebp - 0x44]
mov dword [edx], ecx
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
mov cl, byte [ebp - 1]
call fcn.00515e10
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x14]
movsx eax, word [edx]
movsx ecx, word [ebp - 0x10]
sub eax, ecx
movsx edx, word [ebp - 0x18]
cmp eax, edx
jne 0x516ead
jmp 0x516edf
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
push ecx
movzx edx, word [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax]
push ecx
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
push eax
call fcn.00516820
add esp, 0x10
movzx edx, word [ebp - 0x20]
movzx ecx, word [ebp - 8]
sar edx, cl
mov eax, dword [ebp - 0x78]
mov word [eax], dx
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
or edx, dword [ecx]
mov eax, dword [ebp - 0x3c]
mov dword [eax], edx
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x98]
push edx
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
mov dword [ebp - 0x9c], eax
movzx eax, byte [ebp - 0xa]
push eax
call fcn.005169c0
movzx ecx, byte [ebp - 0xa]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx]
xor ecx, eax
mov byte [ebp - 0xb], cl
movzx ecx, byte [ebp + 8]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx]
and ecx, eax
mov byte [ebp - 2], cl
push 0xe7
mov ecx, dword [ebp - 0x4c]
movzx edx, byte [ecx]
push edx
call fcn.00516150
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax]
mov byte [ebp + 8], cl
mov eax, 0x75
pop esi
mov esp, ebp
pop ebp
ret 4