Function at 0x10024e0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x80
mov dword [0x1004b68], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push edi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 1
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jl 0x100253b
push 0x20
lea eax, [ebp - 0x44]
push eax
push 1
push 0xffffffffffffffff
mov dword [ebp - 0x3c], 0x4b000
mov dword [ebp - 0x38], 0x5d000
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
push 0x1004da0
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
mov esi, 0x1004b80
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.01001b73
mov dword [0x10040cc], eax
call fcn.01001ddb
test eax, eax
jne 0x1002586
cmp dword [0x10040cc], edi
jne 0x1002586
push edi
push 0x1001e11
push edi
push 0xb
jmp 0x100258f
push edi
push 0x1001e11
push edi
push 0xa
push dword [0x1004b68]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
cmp eax, edi
mov dword [0x1004d88], eax
je 0x10026fd
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x20
push str.Extremely_Low_on_Memory
push 0xdb
push dword [0x1004b68]
call esi
push 0x40
push str.Close_an_application_and_try_again.
push 0xdc
push dword [0x1004b68]
call esi
push 0x1b
push 2
push 1
push dword [0x1004d88]
call dword [sym.imp.USER32.dll_RegisterHotKey]
test eax, eax
je 0x10026f1
push dword [0x1004d88]
call dword [sym.imp.USER32.dll_RegisterTasklist]
test eax, eax
je 0x10026f1
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea eax, [ebp - 0x24]
push eax
call ebx
test eax, eax
je 0x10026f0
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
lea eax, [ebp - 0x24]
push eax
push dword [0x1004d88]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x10026df
cmp dword [ebp - 0x20], 0x112
jne 0x10026cb
cmp dword [ebp - 0x1c], 0xf130
jne 0x10026cb
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x100430c]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 8]
sar ecx, 1
sub eax, ecx
cmp eax, edi
mov dword [ebp - 8], eax
jg 0x1002675
mov dword [ebp - 8], edi
mov eax, dword [0x1004b6c]
sub eax, dword [0x1004308]
cmp dword [ebp - 8], eax
jl 0x1002688
mov dword [ebp - 8], eax
push 4
call esi
mov ecx, dword [ebp - 4]
shl eax, 1
sub ecx, eax
test ecx, ecx
jle 0x10026a8
push 4
call esi
mov ecx, dword [ebp - 4]
neg eax
lea eax, [ecx + eax*2]
mov dword [ebp - 4], eax
jmp 0x10026ab
mov dword [ebp - 4], edi
mov eax, dword [0x10051cc]
sub eax, dword [0x100430c]
cmp dword [ebp - 4], eax
jl 0x10026be
mov dword [ebp - 4], eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.010014cc
jmp 0x10026df
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
push edi
lea eax, [ebp - 0x24]
push eax
call ebx
test eax, eax
jne 0x1002622
pop ebx
push dword [0x1004d88]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
xor eax, eax
pop esi
leave
ret