Function at 0x415dc0
Capabilities:
Access peb ldr_data
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4212a8
mov eax, dword fs:[0]
push eax
sub esp, 0x258
push ebx
push esi
push edi
mov eax, dword [0x432ed8]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
mov eax, dword [esi + 0x18]
mov edx, dword [eax + 0xc]
lea ecx, [esi + 0x18]
xor ebx, ebx
mov byte [esp + 0x17], 0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ecx
call edx
mov eax, dword [esi + 0x14]
cmp eax, ebx
mov dword [esp + 0x30], eax
jbe 0x4160c3
jmp 0x415e29
mov esi, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x270], ebx
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
lea edi, [esi + 0xc]
mov esi, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x10]
add eax, 0xc
test edi, edi
mov dword [esp + 0x58], ecx
je 0x415e5c
cmp edi, eax
je 0x415e61
call fcn.004172e0
cmp esi, dword [esp + 0x58]
je 0x415edf
cmp ebx, 0x40
jae 0x415edf
test edi, edi
jne 0x415e75
call fcn.004172e0
cmp esi, dword [edi + 4]
jne 0x415e7f
call fcn.004172e0
cmp esi, dword [edi + 4]
mov edx, dword [esi + 0xc]
mov dword [esp + ebx*4 + 0x164], edx
jne 0x415e93
call fcn.004172e0
mov eax, dword [esi + 0x10]
mov dword [esp + ebx*4 + 0x64], eax
add ebx, 1
cmp byte [esp + 0x17], 0
je 0x415ec9
cmp esi, dword [edi + 4]
jne 0x415eae
call fcn.004172e0
mov ecx, dword [esi + 0xc]
push ecx
push 0x4239c0
lea ecx, [esp + 0x24]
call dword [sym.imp.MessageFrameWork.dll_public:_class_CORE::corestring_wchar_t_____thiscall_CORE::corestring_wchar_t_::operator___wchar_t_const__]
mov ecx, eax
call dword [sym.imp.MessageFrameWork.dll_public:_class_CORE::corestring_wchar_t_____thiscall_CORE::corestring_wchar_t_::operator___unsigned_int_]
lea ecx, [esp + 0x38]
call fcn.00413bd0
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
jmp 0x415e46
mov edi, dword [esp + 0x2c]
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
cmp byte [esp + 0x17], 0
je 0x415f1a
cmp dword [esp + 0x34], ebx
je 0x415f1a
lea ecx, [esp + 0x1c]
call dword [sym.imp.MessageFrameWork.dll__p___corestring__W_CORE__QBEPB_WXZ]
push eax
push str.corethreadgroup::wait_threadIds:_s
push 0x433da0
call fcn.00415bc0
add esp, 0xc
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 8]
cmp esi, 0x3e8
mov dword [esp + 0x40], eax
jae 0x415f44
push esi
push 1
lea ecx, [esp + 0x6c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [esp + 0x24], eax
jmp 0x415f6f
push 0x3e8
push 1
lea edx, [esp + 0x6c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
mov dword [esp + 0x24], eax
jne 0x415f6f
mov dword [esp + 0x24], 0
mov byte [esp + 0x17], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
test ebx, ebx
mov dword [esp + 0x20], 0
jbe 0x416046
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
lea ecx, [esp + eax*4 + 0x164]
push ecx
lea edx, [esp + 0x48]
add esi, 0xc
push edx
mov ecx, esi
call fcn.00407c40
mov edi, dword [esp + 0x44]
test edi, edi
mov eax, dword [esi + 4]
mov dword [esp + 0x50], eax
je 0x415fc4
cmp edi, esi
je 0x415fc9
call fcn.004172e0
mov esi, dword [esp + 0x48]
cmp esi, dword [esp + 0x50]
je 0x416030
test edi, edi
jne 0x415fdc
call fcn.004172e0
cmp esi, dword [edi + 4]
jne 0x415fe6
call fcn.004172e0
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x20]
cmp ecx, dword [esp + edx*4 + 0x64]
jne 0x416030
cmp esi, dword [edi + 4]
jne 0x415ffd
call fcn.004172e0
mov eax, dword [esi + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41601d
cmp eax, 0xffffffff
jne 0x416030
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
jne 0x416030
push esi
push edi
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x24]
add ecx, 0xc
call fcn.0040a190
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, ebx
mov dword [esp + 0x20], eax
jb 0x415f92
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x24]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x4160ff
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
cmp dword [edi + 0x14], edx
jb 0x41610a
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.MessageFrameWork.dll_public:_static_class_CORE::corestring_wchar_t____cdecl_CORE::corestring_wchar_t_::formatError_unsigned_long_int_]
add esp, 8
mov byte [esp + 0x270], 1
mov ecx, dword [edi + 0x14]
push ecx
mov ecx, eax
call dword [sym.imp.MessageFrameWork.dll__p___corestring__W_CORE__QBEPB_WXZ]
push eax
push str.corethreadgroup_wait_ERROR___s__COUNT_LEFT___u
push 0x433da0
call fcn.004028a0
add esp, 0x10
mov byte [esp + 0x270], 0
lea ecx, [esp + 0x28]
call dword [sym.imp.MessageFrameWork.dll_public:_void___thiscall_CORE::corestring_wchar_t_::destructor_void_]
mov dword [esp + 0x270], ebx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MessageFrameWork.dll_public:_void___thiscall_CORE::corestring_wchar_t_::destructor_void_]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp byte [esp + 0x17], 0
je 0x4160e7
push str.corethreadgroup::wait_done
push 0x433da0
call fcn.00415bc0
add esp, 8
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x102
je 0x4160b2
mov edi, dword [esp + 0x18]
cmp esi, ebx
je 0x416125
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x40]
cmp esi, eax
jae 0x41611e
mov eax, esi
sub esi, eax
mov dword [ebp + 8], esi
je 0x4160b2
mov dword [esp + 0x270], ebx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MessageFrameWork.dll_public:_void___thiscall_CORE::corestring_wchar_t_::destructor_void_]
mov eax, dword [edi + 0x14]
test eax, eax
mov dword [esp + 0x30], eax
ja 0x415e23
jmp 0x4160c3