Function at 0x10051780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10144ecb
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov edi, ecx
push 0x3f
xor ebp, ebp
lea eax, [esp + 0x51]
push ebp
push eax
mov esi, edx
mov byte [esp + 0x58], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x7e
lea ecx, [esp + 0x92]
push ebp
push ecx
mov word [esp + 0x98], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
xor ebx, ebx
cmp edi, 0xffffffff
setg bl
mov dword [esp + 0x118], ebp
cmp ebx, ebp
jne 0x1005184d
push 0x294b
mov edi, str..UiRecord.cpp
call fcn.1002f930
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push edi
push str.Index__1
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
jmp 0x10051adc
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push edi
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call edx
mov ebp, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x48], eax
push edi
mov eax, esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
call fcn.10051b20
cmp eax, 1
sbb ecx, ecx
neg ecx
jne 0x100518be
push 0x294f
mov edi, str..UiRecord.cpp
call fcn.1002f930
add esp, 4
mov esi, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push 0
push str.TaskCount_1
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
jmp 0x10051adc
mov eax, 0x1014c96c
lea ecx, [esp + 0x3c]
call fcn.1002f890
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
jne 0x10051912
push 0x2950
mov edi, str..UiRecord.cpp
call fcn.1002f930
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push edi
push str.gTask_GUID_NULL
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
jmp 0x10051adc
movzx eax, byte [esp + 0x4b]
movzx ecx, byte [esp + 0x4a]
push eax
mov eax, dword [esp + 0x4c]
push ecx
movzx ecx, byte [esp + 0x4f]
movzx edx, ah
push edx
movzx edx, byte [esp + 0x52]
movzx eax, al
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
movzx ecx, ah
push ecx
movzx ecx, word [esp + 0x5c]
movzx edx, al
movzx eax, word [esp + 0x5e]
push edx
push eax
push ecx
push ebp
lea edx, [esp + 0x78]
push str._.8x__.4x__.4x__.2x_.2x__.2x_.2x_.2x_.2x_.2x_.2x
push edx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x34
push 0x40
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x94]
push ecx
call dword [sym.imp.MSVCR80.dll_mbstowcs]
add esp, 0xc
push 0x850
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10051996
mov esi, eax
call fcn.1007bc10
mov ebp, eax
jmp 0x10051998
xor ebp, ebp
xor ebx, ebx
test ebp, ebp
setne bl
test ebx, ebx
jne 0x100519d0
push 0x2956
mov edi, str..UiRecord.cpp
call fcn.1002f930
add esp, 4
push eax
push str.pShutdownMgr_NULL
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.100016d0
add esp, 8
jmp 0x10051ace
mov edx, dword [ebp]
mov eax, dword [edx + 0x18]
mov ecx, ebp
call eax
mov ebx, eax
test ebx, ebx
jne 0x100519fa
push 0x2958
mov edi, str..UiRecord.cpp
call fcn.1002f930
add esp, 4
push eax
push str.pShutdownMgr__Init__
jmp 0x100519bb
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov ecx, ebp
call eax
test eax, eax
mov dword [esp + 0x18], eax
je 0x10051a4d
mov edi, dword [sym.imp.MSVCR80.dll_wcsstr]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
test eax, eax
je 0x10051a3b
push str.ABSchedhlp.exe
push eax
call edi
add esp, 8
test eax, eax
je 0x10051a3b
lea ebx, [esp + 0x18]
lea esi, [esp + 0x1c]
call fcn.1005c140
mov edx, dword [ebp]
mov eax, dword [edx + 0x10]
mov ecx, ebp
call eax
test eax, eax
mov dword [esp + 0x18], eax
jne 0x10051a12
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
xor edi, edi
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x10051a86
mov eax, dword [esp + 0x24]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x10051a86
mov ecx, dword [ecx + edi*4]
mov edx, dword [ecx]
mov esi, dword [ebp]
mov eax, dword [edx + 0x14]
add esi, 8
call eax
mov edx, dword [esi]
push eax
mov ecx, ebp
call edx
add edi, 1
jmp 0x10051a55
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
mov ecx, ebp
call edx
mov ebx, eax
test ebx, ebx
jne 0x10051ace
push 0x2971
mov edi, str..UiRecord.cpp
call fcn.1002f930
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push edi
push str.pShutdownMgr__Save__
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
test ebp, ebp
je 0x10051adc
mov eax, dword [ebp]
mov edx, dword [eax + 0x20]
mov ecx, ebp
call edx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10051aed
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.10130e50
add esp, 0x108
ret