Function at 0x424a40
Capabilities:
Check if file exists
Get common file path
Resolve function by parsing pe exports
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4492d1
mov eax, dword fs:[0]
push eax
sub esp, 0x88c
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0x888], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x465d44]
xor eax, esp
push eax
lea eax, [esp + 0x8a0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8b0]
push 0x4681ec
mov esi, ecx
mov dword [esp + 0x64], 0x4681ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [esp + 0x8a8], ebx
cmp dword [esi + 0x58], ebx
je 0x424abb
inc dword [esi + 0x60]
push 0x4681ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx + 1]
jmp 0x424deb
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x424dde
mov eax, dword [esi + 0x50]
cmp eax, ebx
jne 0x424b30
push 0x7fe
lea ecx, [esp + 0xa2]
xor eax, eax
push ebx
push ecx
mov word [esp + 0xa8], ax
call fcn.004310d0
add esp, 0xc
lea edx, [esp + 0x9c]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x9c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x424b10
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa0]
push eax
lea ecx, [esi + 0x3c]
call fcn.0040376d
xor ecx, ecx
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], cx
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0x8ac], 1
call fcn.0040a010
mov ecx, eax
call fcn.00424870
cmp dword [esp + 0x7c], 8
mov eax, dword [esp + 0x68]
jae 0x424b6b
lea eax, [esp + 0x68]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call edi
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x424b80
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esi + 0x20]
call fcn.0040376d
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x58], eax
cmp eax, ebx
jne 0x424bd5
cmp dword [esi + 0x54], 8
jb 0x424bc1
mov esi, dword [esi + 0x40]
push esi
call edi
lea ecx, [esp + 0x64]
call fcn.00404ec7
jmp 0x424dde
add esi, 0x40
push esi
call edi
lea ecx, [esp + 0x64]
call fcn.00404ec7
jmp 0x424dde
lea eax, [esi + 8]
lea ecx, [esi + 0xc]
lea edx, [esi + 0x10]
lea ebp, [esi + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], edx
lea eax, [esi + 0x14]
lea ecx, [esi + 0x18]
lea edx, [esi + 0x1c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], str.init
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], str.uninit
mov dword [esp + 0x2c], str.create_new_task
mov dword [esp + 0x34], str.create_continued_task
mov dword [esp + 0x3c], str.query_task_info
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], str.start_task
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], str.stop_task
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], str.set_task_type
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], 0x458cf8
mov dword [esp + 0x14], ebx
cmp ebp, ebx
je 0x424d01
xor eax, eax
mov edi, dword [esp + eax + 0x1c]
mov eax, dword [esi + 0x58]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp], eax
xor ecx, ecx
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], cx
mov eax, edi
mov byte [esp + 0x8a8], 2
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x424ca0
lea edx, [esp + 0x80]
push edx
sub eax, ecx
push eax
push edi
call fcn.004232a0
add esp, 0xc
cmp dword [ebp], ebx
je 0x424d81
cmp dword [esp + 0x98], 8
mov byte [esp + 0x8a8], 1
jb 0x424ce6
mov eax, dword [esp + 0x84]
push eax
call fcn.00430dfa
add esp, 4
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
add eax, eax
add eax, eax
add eax, eax
mov ebp, dword [esp + eax + 0x18]
cmp ebp, ebx
jne 0x424c64
push ebx
mov ecx, esi
call fcn.00423c80
test eax, eax
jne 0x424d54
mov ebp, 1
add dword [esi + 0x60], ebp
cmp dword [esp + 0x7c], 8
mov dword [esi + 0x5c], ebp
jb 0x424d2c
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00430dfa
add esp, 4
xor edx, edx
push 0x4681ec
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], dx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebp
jmp 0x424deb
push ebx
mov ecx, esi
call fcn.00424780
cmp dword [esp + 0x7c], 8
jb 0x424d70
mov eax, dword [esp + 0x68]
push eax
call fcn.00430dfa
add esp, 4
xor ecx, ecx
mov dword [esp + 0x7c], 7
mov word [esp + 0x68], cx
jmp 0x424dda
mov edi, 8
cmp dword [esp + 0x98], edi
jb 0x424d9f
mov edx, dword [esp + 0x84]
push edx
call fcn.00430dfa
add esp, 4
xor eax, eax
mov esi, 7
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], ax
cmp dword [esp + 0x7c], edi
jb 0x424dcf
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00430dfa
add esp, 4
xor edx, edx
mov dword [esp + 0x7c], esi
mov word [esp + 0x68], dx
mov dword [esp + 0x78], ebx
push 0x4681ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x8a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x888]
xor ecx, esp
call fcn.004310bf
add esp, 0x898
ret 4