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

Disassembly:
push 0xffffffffffffffff
push 0x1013ee2b
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10170024]
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 0x100516fd
push 0x294b
mov edi, str..UiRecord.cpp
call fcn.1002f7d0
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 0x1005198c
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.100519d0
cmp eax, 1
sbb ecx, ecx
neg ecx
jne 0x1005176e
push 0x294f
mov edi, str..UiRecord.cpp
call fcn.1002f7d0
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 0x1005198c
mov eax, 0x1014692c
lea ecx, [esp + 0x3c]
call fcn.1002f730
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
jne 0x100517c2
push 0x2950
mov edi, str..UiRecord.cpp
call fcn.1002f7d0
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 0x1005198c
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 0x10051846
mov esi, eax
call fcn.1007b8c0
mov ebp, eax
jmp 0x10051848
xor ebp, ebp
xor ebx, ebx
test ebp, ebp
setne bl
test ebx, ebx
jne 0x10051880
push 0x2956
mov edi, str..UiRecord.cpp
call fcn.1002f7d0
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 0x1005197e
mov edx, dword [ebp]
mov eax, dword [edx + 0x18]
mov ecx, ebp
call eax
mov ebx, eax
test ebx, ebx
jne 0x100518aa
push 0x2958
mov edi, str..UiRecord.cpp
call fcn.1002f7d0
add esp, 4
push eax
push str.pShutdownMgr__Init__
jmp 0x1005186b
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov ecx, ebp
call eax
test eax, eax
mov dword [esp + 0x18], eax
je 0x100518fd
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 0x100518eb
push str.ABSchedhlp.exe
push eax
call edi
add esp, 8
test eax, eax
je 0x100518eb
lea ebx, [esp + 0x18]
lea esi, [esp + 0x1c]
call fcn.1005c060
mov edx, dword [ebp]
mov eax, dword [edx + 0x10]
mov ecx, ebp
call eax
test eax, eax
mov dword [esp + 0x18], eax
jne 0x100518c2
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
xor edi, edi
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x10051936
mov eax, dword [esp + 0x24]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x10051936
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 0x10051905
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
mov ecx, ebp
call edx
mov ebx, eax
test ebx, ebx
jne 0x1005197e
push 0x2971
mov edi, str..UiRecord.cpp
call fcn.1002f7d0
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 0x1005198c
mov eax, dword [ebp]
mov edx, dword [eax + 0x20]
mov ecx, ebp
call edx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1005199d
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.1012d370
add esp, 0x108
ret