Function at 0x46fd67
Capabilities:
Get common file path
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
mov dword [ebp - 4], ebx
call fcn.004064a9
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc]
call fcn.004064a9
push str._UPPER_SELTEXT_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x46fde2
lea ecx, [ebp - 0xc]
call fcn.00406433
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_CharUpperW]
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
cmp dword [ecx - 0xc], ebx
lea eax, [ecx - 0xc]
jl 0x46fdce
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x470797
mov eax, dword [0x4a9450]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.00406638
jmp 0x470797
push str._LOWER_SELTEXT_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x46fe08
lea ecx, [ebp - 0xc]
call fcn.00406433
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_CharLowerW]
jmp 0x46fdb2
mov esi, dword [ebp - 0xc]
push str._NUMBERCHARS_SELTEXT_
push dword [ebp - 8]
call fcn.00491db7
neg eax
sbb al, al
pop ecx
inc al
pop ecx
mov byte [ebp + 0xf], al
jne 0x4706dd
push str._NUMBERCHARS_CLIPBOARD_
push dword [ebp - 8]
call fcn.00491db7
neg eax
sbb al, al
pop ecx
inc al
pop ecx
cmp al, bl
jne 0x4706da
push str._COPYRIGHT_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x46fe67
push dword [ebp + 8]
call fcn.004501e1
pop ecx
jmp 0x4706c2
push str._EMDASH_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x46fe84
push dword [ebp + 8]
call fcn.0045080f
jmp 0x46fe61
push str._WINDOWS_VERSION_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x46fea1
push dword [ebp + 8]
call fcn.00470b63
jmp 0x46fe61
push str._MOUSEPOS_ASLARAM_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x46ff24
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
jne 0x46fedb
push str.ERROR_on_GetCursorPos
mov ecx, dword [ebp + 8]
call fcn.004064a9
jmp 0x4706c2
movzx eax, word [ebp - 0x14]
movzx ecx, word [ebp - 0x18]
shl eax, 0x10
or eax, ecx
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00411a7d
pop ecx
mov esi, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp + 0x18]
cmp dword [ecx - 0xc], ebx
lea eax, [ecx - 0xc]
jl 0x46ff0d
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x46ff1c
mov eax, dword [0x4a9450]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.00406638
lea ecx, [ebp + 0x18]
jmp 0x470792
push str._WINSYSDIR_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x46ff9e
lea eax, [ebp - 0x22c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
ja 0x46ff57
push str.ERROR_on_GetSystemDirectory
jmp 0x46fece
mov word [ebp + eax*2 - 0x22c], bx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp + 0x18]
call fcn.004064a9
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
cmp dword [ecx - 0xc], ebx
lea eax, [ecx - 0xc]
jl 0x46ff87
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x46ff96
mov eax, dword [0x4a9450]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.00406638
lea ecx, [ebp + 0x18]
jmp 0x470792
push str._TRIM_LEFT_ALLPROTS_FROM_SELTEXT_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
je 0x46ffc4
push str._CURSOR_POS_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x46ffce
push 0x4bf5f0
jmp 0x46fece
mov edi, str._DAY_
push edi
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x47003a
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [0x4a9450]
mov dword [ebp + 0x18], eax
movzx eax, word [ebp - 0x1a]
push eax
lea eax, [ebp + 0x18]
push 0x4a960c
push eax
call fcn.004069e4
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
add esp, 0xc
cmp dword [ecx - 0xc], ebx
lea eax, [ecx - 0xc]
jl 0x470023
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x470032
mov eax, dword [0x4a9450]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.00406638
lea ecx, [ebp + 0x18]
jmp 0x470792
push str._DAY2_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x4700be
push dword [ebp + 0x18]
lea eax, [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
push eax
call fcn.0046fd67
mov eax, dword [ebp + 0x18]
add esp, 0x14
cmp dword [eax - 8], 2
jge 0x470090
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x14]
push 0x4ac668
push eax
call fcn.0040673f
push eax
lea ecx, [ebp + 0x18]
call fcn.004065e8
lea ecx, [ebp + 0x14]
call fcn.00401085
mov eax, dword [ebp + 0x18]
cmp dword [eax - 0xc], ebx
mov esi, dword [ebp + 8]
lea ecx, [eax - 0xc]
jl 0x4700a6
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4700b6
mov ecx, dword [0x4a9450]
push eax
mov dword [esi], ecx
mov ecx, esi
call fcn.00406638
lea ecx, [ebp + 0x18]
jmp 0x470792
push str._URL_FROM_SELECTED_TEXT_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x470110
push 1
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.00471689
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
add esp, 0xc
cmp dword [ecx - 0xc], ebx
lea eax, [ecx - 0xc]
jl 0x4700f9
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x470108
mov eax, dword [0x4a9450]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.00406638
lea ecx, [ebp + 0x18]
jmp 0x470792
push str._URL_FROM_CLIPBOARD_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x470164
push 1
lea eax, [ebp + 0x18]
push dword [ebp + 0x14]
push eax
call fcn.00471689
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
add esp, 0xc
cmp dword [ecx - 0xc], ebx
lea eax, [ecx - 0xc]
jl 0x47014d
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x47015c
mov eax, dword [0x4a9450]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.00406638
lea ecx, [ebp + 0x18]
jmp 0x470792
push str._TEXT_AFTER_URL_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x4701b5
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.00471689
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
add esp, 0xc
cmp dword [ecx - 0xc], ebx
lea eax, [ecx - 0xc]
jl 0x47019e
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4701ad
mov eax, dword [0x4a9450]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.00406638
lea ecx, [ebp + 0x18]
jmp 0x470792
push str._KEYPRESS_ENTER_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x470205
push 0x4ab810
lea ecx, [ebp + 0x18]
call fcn.004064a9
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
cmp dword [ecx - 0xc], ebx
lea eax, [ecx - 0xc]
jl 0x4701ee
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4701fd
mov eax, dword [0x4a9450]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.00406638
lea ecx, [ebp + 0x18]
jmp 0x470792
push str._KEYPRESS_TAB_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x470255
push 0x4aa0cc
lea ecx, [ebp + 0x18]
call fcn.004064a9
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
cmp dword [ecx - 0xc], ebx
lea eax, [ecx - 0xc]
jl 0x47023e
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x47024d
mov eax, dword [0x4a9450]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.00406638
lea ecx, [ebp + 0x18]
jmp 0x470792
mov edi, str._YEAR_
push edi
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x4702c1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [0x4a9450]
mov dword [ebp + 0x18], eax
movzx eax, word [ebp - 0x20]
push eax
lea eax, [ebp + 0x18]
push 0x4a960c
push eax
call fcn.004069e4
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
add esp, 0xc
cmp dword [ecx - 0xc], ebx
lea eax, [ecx - 0xc]
jl 0x4702aa
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4702b9
mov eax, dword [0x4a9450]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.00406638
lea ecx, [ebp + 0x18]
jmp 0x470792
push str._YEAR2_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x470324
push dword [ebp + 0x18]
lea eax, [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
push eax
call fcn.0046fd67
mov eax, dword [ebp + 0x18]
add esp, 0x14
cmp dword [eax - 8], 2
jle 0x470310
lea eax, [ebp + 0x14]
push 2
push eax
lea ecx, [ebp + 0x18]
call fcn.004068d7
push eax
lea ecx, [ebp + 0x18]
call fcn.004065e8
lea ecx, [ebp + 0x14]
call fcn.00401085
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x18]
push eax
call fcn.00406383
lea ecx, [ebp + 0x18]
jmp 0x4706bd
mov edi, str._MONTHNUMBER_
push edi
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x470374
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [0x4a9450]
mov dword [ebp + 0x18], eax
movzx eax, word [ebp - 0x1e]
push eax
lea eax, [ebp + 0x18]
push 0x4a960c
push eax
call fcn.004069e4
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp + 0x18]
push eax
call fcn.00406383
lea ecx, [ebp + 0x18]
jmp 0x4706bd
push str._MONTHNUMBER2_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x4703db
push dword [ebp + 0x18]
lea eax, [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
push eax
call fcn.0046fd67
mov eax, dword [ebp + 0x18]
add esp, 0x14
cmp dword [eax - 8], 2
jge 0x4703c7
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x14]
push 0x4ac668
push eax
call fcn.0040673f
push eax
lea ecx, [ebp + 0x18]
call fcn.004065e8
lea ecx, [ebp + 0x14]
call fcn.00401085
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x18]
push eax
call fcn.00406383
lea ecx, [ebp + 0x18]
jmp 0x4706bd
push str._MONTHNAME_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x470421
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x1e]
push ebx
push dword [ebp + 0x18]
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.0044a0f3
mov ecx, dword [ebp + 8]
add esp, 0x10
lea eax, [ebp + 0x14]
push eax
call fcn.00406383
lea ecx, [ebp + 0x14]
jmp 0x4706bd
push str._MONTHNAME_ABBR_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x470468
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x1e]
push 1
push dword [ebp + 0x18]
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.0044a0f3
mov ecx, dword [ebp + 8]
add esp, 0x10
lea eax, [ebp + 0x14]
push eax
call fcn.00406383
lea ecx, [ebp + 0x14]
jmp 0x4706bd
push str._TWP_VERSION_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x47047e
push ebx
jmp 0x4704aa
push str._TWP_VERSION_EDITOR_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x470495
push 1
jmp 0x4704aa
push str._TWP_VERSION_DLL_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x4704b8
push 2
push dword [ebp + 8]
call fcn.00470a80
pop ecx
jmp 0x46fe61
push str._WEEKDAYNAME_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x4704ec
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push dword [ebp + 0x18]
push ebx
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.004707ae
add esp, 0x10
jmp 0x4706c2
push str._WEEKDAYNAME_ABBR_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x470513
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push dword [ebp + 0x18]
push 1
push dword [ebp - 0x1c]
jmp 0x4704dc
mov eax, dword [0x4a9450]
push str._SELECTED_TEXT_
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x470534
push esi
jmp 0x4706a6
push str._WINDOWS_USERNAME_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x47057f
lea eax, [ebp + 0x18]
lea ecx, [ebp - 0x10]
push eax
push 0x101
mov dword [ebp + 0x18], 0x100
call fcn.0044fa47
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x470571
mov eax, dword [ebp + 0x18]
dec eax
push eax
jmp 0x470572
push ebx
lea ecx, [ebp - 0x10]
call fcn.004068ae
jmp 0x4706ae
push str._CLIPBOARD_TEXT_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x47059a
push dword [ebp + 0x14]
jmp 0x4706a6
push str._DATETIME_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x4705d3
push dword [ebp + 0x18]
lea eax, [ebp + 0x18]
push ebx
push eax
call fcn.004707e1
add esp, 0xc
lea ecx, [ebp - 0x10]
push eax
call fcn.004065e8
lea ecx, [ebp + 0x18]
call fcn.00401085
jmp 0x4706ae
push str._DATE_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x470605
push dword [ebp + 0x18]
lea eax, [ebp + 0x18]
push 1
push eax
call fcn.004707e1
add esp, 0xc
lea ecx, [ebp - 0x10]
push eax
call fcn.004065e8
lea ecx, [ebp + 0x18]
jmp 0x4705c9
push str._TIME_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x470637
push dword [ebp + 0x18]
lea eax, [ebp + 0x18]
push 2
push eax
call fcn.004707e1
add esp, 0xc
lea ecx, [ebp - 0x10]
push eax
call fcn.004065e8
lea ecx, [ebp + 0x18]
jmp 0x4705c9
push str._DATETIME_EX_WD_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x47066c
push dword [ebp + 0x18]
lea eax, [ebp + 0x18]
push 3
push eax
call fcn.004707e1
add esp, 0xc
lea ecx, [ebp - 0x10]
push eax
call fcn.004065e8
lea ecx, [ebp + 0x18]
jmp 0x4705c9
push str._DATE_EX_WD_
push dword [ebp - 8]
call fcn.00491db7
pop ecx
test eax, eax
pop ecx
jne 0x4706a1
push dword [ebp + 0x18]
lea eax, [ebp + 0x18]
push 4
push eax
call fcn.004707e1
add esp, 0xc
lea ecx, [ebp - 0x10]
push eax
call fcn.004065e8
lea ecx, [ebp + 0x18]
jmp 0x4705c9
push 0x4bf5f0
lea ecx, [ebp - 0x10]
call fcn.00406638
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00406383
lea ecx, [ebp - 0x10]
call fcn.00401085
lea ecx, [ebp - 0xc]
call fcn.00401085
lea ecx, [ebp - 8]
call fcn.00401085
mov eax, dword [ebp + 8]
jmp 0x4707a9
mov esi, dword [ebp + 0x14]
push esi
lea ecx, [ebp + 0x14]
call fcn.004064a9
mov eax, dword [ebp + 0x14]
cmp dword [eax - 8], ebx
jne 0x470704
push 0x4bf5f0
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 1
call fcn.004064a9
jmp 0x470717
push eax
lea eax, [ebp + 0xc]
push eax
mov dword [ebp - 4], 2
call fcn.00470b93
pop ecx
pop ecx
mov ecx, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ecx - 0xc], ebx
jl 0x47072f
mov dword [ebp + 0x18], ecx
add ecx, 0xfffffff4
push ecx
call edi
jmp 0x470742
mov ecx, dword [0x4a9450]
mov dword [ebp + 0x18], ecx
push dword [eax]
lea ecx, [ebp + 0x18]
call fcn.00406638
test byte [ebp - 4], 2
je 0x470754
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp + 0xc]
call fcn.00401085
test byte [ebp - 4], 1
je 0x470762
lea ecx, [ebp + 0x10]
call fcn.00401085
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
lea ecx, [eax - 0xc]
jl 0x470777
push ecx
mov dword [esi], eax
call edi
jmp 0x470787
mov ecx, dword [0x4a9450]
push eax
mov dword [esi], ecx
mov ecx, esi
call fcn.00406638
lea ecx, [ebp + 0x18]
call fcn.00401085
lea ecx, [ebp + 0x14]
call fcn.00401085
lea ecx, [ebp - 0xc]
call fcn.00401085
lea ecx, [ebp - 8]
call fcn.00401085
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret