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

Disassembly:
push 0xffffffffffffffff
push 0x1011255b
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x1013b024]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1013b024]
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 0x1005108d
push 0x29a2
mov edi, str.E:AMWork_branchesBRCloudv2_srcUiLogicUiRecord.cpp
call fcn.1002ef80
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 0x1005131c
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.10051360
cmp eax, 1
sbb ecx, ecx
neg ecx
jne 0x100510fe
push 0x29a6
mov edi, str.E:AMWork_branchesBRCloudv2_srcUiLogicUiRecord.cpp
call fcn.1002ef80
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 0x1005131c
mov eax, 0x101197ac
lea ecx, [esp + 0x3c]
call fcn.1002eee0
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
jne 0x10051152
push 0x29a7
mov edi, str.E:AMWork_branchesBRCloudv2_srcUiLogicUiRecord.cpp
call fcn.1002ef80
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 0x1005131c
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 0x100511d6
mov esi, eax
call fcn.1007ba00
mov ebp, eax
jmp 0x100511d8
xor ebp, ebp
xor ebx, ebx
test ebp, ebp
setne bl
test ebx, ebx
jne 0x10051210
push 0x29ad
mov edi, str.E:AMWork_branchesBRCloudv2_srcUiLogicUiRecord.cpp
call fcn.1002ef80
add esp, 4
push eax
push str.pShutdownMgr_NULL
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.100015b0
add esp, 8
jmp 0x1005130e
mov edx, dword [ebp]
mov eax, dword [edx + 0x18]
mov ecx, ebp
call eax
mov ebx, eax
test ebx, ebx
jne 0x1005123a
push 0x29af
mov edi, str.E:AMWork_branchesBRCloudv2_srcUiLogicUiRecord.cpp
call fcn.1002ef80
add esp, 4
push eax
push str.pShutdownMgr__Init__
jmp 0x100511fb
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov ecx, ebp
call eax
test eax, eax
mov dword [esp + 0x18], eax
je 0x1005128d
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 0x1005127b
push str.ABSchedhlp.exe
push eax
call edi
add esp, 8
test eax, eax
je 0x1005127b
lea ebx, [esp + 0x18]
lea esi, [esp + 0x1c]
call fcn.1005c3a0
mov edx, dword [ebp]
mov eax, dword [edx + 0x10]
mov ecx, ebp
call eax
test eax, eax
mov dword [esp + 0x18], eax
jne 0x10051252
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
xor edi, edi
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x100512c6
mov eax, dword [esp + 0x24]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x100512c6
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 0x10051295
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
mov ecx, ebp
call edx
mov ebx, eax
test ebx, ebx
jne 0x1005130e
push 0x29c8
mov edi, str.E:AMWork_branchesBRCloudv2_srcUiLogicUiRecord.cpp
call fcn.1002ef80
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 0x1005131c
mov eax, dword [ebp]
mov edx, dword [eax + 0x20]
mov ecx, ebp
call edx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1005132d
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.1010dc50
add esp, 0x108
ret