Function at 0x40b9a1
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x408
lea ebp, [esp - 4]
mov eax, dword [0x45e524]
xor eax, ebp
mov dword [ebp + 0x408], eax
push 0x10
mov eax, 0x445ad7
call fcn.0042e447
xor edi, edi
push str._ScheduleService__CScheduleWnd__LoadScheduleProgram__Entry
inc edi
push edi
mov esi, ecx
call fcn.0040c81a
pop ecx
pop ecx
push str.EXPLORER.EXE
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00407fa2
test eax, eax
jne 0x40b9fd
push str._ScheduleService__CScheduleWnd__LoadScheduleProgram__GetTokenByName_fail
push edi
call fcn.0040c81a
pop ecx
pop ecx
jmp 0x40bcbc
push dword [ebp - 0x10]
push str._ScheduleService__CScheduleWnd__LoadScheduleProgram__CloseHandle:_hToken__0x_x
push edi
call fcn.0040c81a
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40ba38
push str._ScheduleService__CScheduleWnd__LoadScheduleProgram__WTSGetActiveConsoleSessionId_fail._dwCurSessId__0xFFFFFFFF
push edi
call fcn.0040c81a
pop ecx
pop ecx
xor eax, eax
jmp 0x40bcbe
push ebx
push str._ScheduleService__CScheduleWnd__LoadScheduleProgram__WTSGetActiveConsoleSessionId:_dwCurSessId__0x_x
push edi
call fcn.0040c81a
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x40ba84
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ScheduleService__CScheduleWnd__LoadScheduleProgram__WTSQueryUserToken_fail__0x_x_and_hToken___x
push edi
call fcn.0040c81a
add esp, 0x10
xor ebx, ebx
push ebx
push ebx
push 0x7f0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40bcbc
call fcn.0041aedd
push eax
lea ecx, [ebp - 0x14]
call fcn.0040165a
push 0x30
pop eax
xor ebx, ebx
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00430210
add esp, 0xc
lea eax, [ebp]
push eax
push ebx
push dword [ebp - 0x10]
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push 0x44bad4
push eax
call fcn.00405a71
push 0x30
pop eax
push 0x1fe
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push ebx
push eax
call fcn.00430210
add esp, 0x18
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x10]
mov ecx, esi
call fcn.00407f0e
lea eax, [ebp + 0x208]
push 0x44bad0
push eax
call fcn.00430b47
pop ecx
pop ecx
test eax, eax
je 0x40bc78
lea eax, [ebp + 0x208]
push 0x449080
push eax
call fcn.00430b47
pop ecx
pop ecx
test eax, eax
je 0x40bc78
lea eax, [ebp + 0x208]
push 0x44bacc
push eax
call fcn.00430b47
pop ecx
pop ecx
test eax, eax
je 0x40bc78
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push str._ScheduleService__CScheduleWnd__LoadScheduleProgram__GetLogonUserName_succeed._path___s__token_0x_x__szUser__s
push edi
call fcn.0040c81a
add esp, 0x14
call fcn.0041aedd
push eax
lea ecx, [ebp - 0x18]
call fcn.0040165a
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x18]
push str._s.xml
push eax
mov byte [ebp - 4], 1
call fcn.00405a71
mov eax, dword [ebp - 0x18]
add esp, 0xc
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
call fcn.00409b66
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x68]
push eax
call fcn.00409d7d
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 0xc]
cmp eax, ebx
je 0x40bc52
push eax
lea ecx, [ebp - 0x14]
call fcn.00401aa8
push eax
mov ecx, esi
call fcn.0040b6f0
mov ecx, dword [esi + 0x54]
cmp ecx, ebx
je 0x40bbe3
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x54], ebx
push 0x64
call fcn.00413834
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x40bc07
push edi
lea eax, [esi + 0x20]
push eax
call fcn.00410c40
jmp 0x40bc09
xor eax, eax
mov byte [ebp - 4], 1
mov dword [esi + 0x54], eax
cmp eax, ebx
jne 0x40bc48
push str._ScheduleService__CScheduleWnd__LoadScheduleProgram__new_ScheduleMonitor_fail.
push 1
call fcn.0040c81a
pop ecx
pop ecx
cmp dword [ebp - 0x10], ebx
je 0x40bc30
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040143c
lea ecx, [edi - 0x10]
call fcn.0040143c
jmp 0x40ba31
push dword [esi + 0x20]
mov ecx, eax
call fcn.0040e231
cmp dword [ebp - 0x10], ebx
je 0x40bc60
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040143c
lea ecx, [edi - 0x10]
call fcn.0040143c
xor eax, eax
inc eax
jmp 0x40bcbe
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push str._ScheduleService__CScheduleWnd__LoadScheduleProgram__GetLogonUserName_fail.PostMessage_to_reload.__path___s__token_0x_x__szUser__s
push edi
call fcn.0040c81a
add esp, 0x14
cmp dword [ebp - 0x10], ebx
je 0x40bca1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push 0x7f0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040143c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x408]
xor ecx, ebp
call fcn.0042e438
add ebp, 0x40c
leave
ret