Function at 0x402c70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46211c
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x483094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 8]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x11c]
movlpd qword [ebp - 0x11c], xmm0
call fcn.00403610
mov dword [ebp - 4], 0
lea eax, [ebp - 0x134]
mov esi, dword [ebx + 0x18]
push eax
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x130], 0
mov edi, dword [esi + 4]
push edi
push esi
mov dword [ebp - 0x12c], 0
mov word [ebp - 0x128], 0
mov byte [ebp - 0x126], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
call fcn.00405070
mov edx, eax
mov ecx, 0x7fffffe
mov eax, dword [ebx + 0x1c]
sub ecx, eax
cmp ecx, 1
jb 0x402f4f
inc eax
mov dword [ebx + 0x1c], eax
mov dword [esi + 4], edx
mov esi, dword [0x487090]
mov dword [edi], edx
inc esi
mov eax, dword [ebx + 0x18]
push 0x100
push 0
mov edi, dword [eax + 4]
mov eax, dword [0x487084]
add edi, 8
inc eax
mov dword [0x487090], esi
mov dword [0x487084], eax
mov dword [edi], eax
lea eax, [ebp - 0x110]
push eax
mov byte [edi + 4], 0
call fcn.00440a60
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
push str._lu_ASYNC_TASK_MGR_EV__u_
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.00401840
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 8], eax
lea eax, [ebp - 0x114]
push eax
push 0
push edi
push 0x4021c0
push 0
mov byte [edi + 0xc], 0
mov dword [edi + 0x14], ebx
push 0
mov dword [ebp - 0x114], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x10], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4875dc]
cmp eax, dword [ecx + 4]
jg 0x402f59
mov eax, dword [vtable.base::logger.0]
mov ecx, 0x483b44
push 1
mov eax, dword [eax + 0x18]
call eax
test al, al
je 0x402ee9
lea eax, [ebp - 0x180]
mov dword [ebp - method.fmt::BasicStringWriter_char__class_std::allocator_char__.virtual_0], vtable.fmt::BasicStringWriter_char__class_std::allocator_char__.0
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 0x170]
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - method.fmt::internal::StringBuffer_char__class_std::allocator_char__.virtual_0], vtable.fmt::internal::StringBuffer_char__class_std::allocator_char__.0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0xf
mov byte [ebp - 0x160], 0
mov dword [ebp - vtable.base::logger.0], 0x483b44
mov dword [ebp - 0x144], str.d:gitwegame_clientcodescommon_src_async_task.cpp
mov dword [ebp - 0x140], 0x140
mov dword [ebp - 0x13c], 0x474f8f
mov dword [ebp - 0x138], 1
mov byte [ebp - 4], 3
lea eax, [ebp - 0x180]
push dword [ebp - 0x114]
push dword [0x487084]
push str._Async_task_mgr_AppendNewThread_task_thread_id:_d__true_thread_id:_d
push 0
push eax
call fcn.00402000
add esp, 0x14
mov byte [ebp - 4], 4
lea edx, [ebp - 0x180]
mov ecx, dword [ebp - 0x148]
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
lea ecx, [ebp - 0x178]
call fcn.00401fa0
mov esi, dword [0x487084]
mov dword [ebp - 4], 5
cmp byte [ebp - 0x118], 0
je 0x402f2f
mov ecx, dword [ebp - 0x11c]
mov eax, 0x80000000
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x402f2f
cmp eax, 0x80000000
jle 0x402f2f
lock bts dword [ecx], 0x1e
jb 0x402f2f
call fcn.00401de0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428c08
mov esp, ebp
pop ebp
ret 4
push str.list_T__too_long
call fcn.0042611b
push 0x4875dc
call fcn.004290b9
add esp, 4
cmp dword [0x4875dc], 0xffffffff
jne 0x402dec
xorps xmm0, xmm0
mov dword [0x483b4c], 0
movq qword [vtable.base::logger.0], xmm0
mov byte [ebp - 4], 2
mov ecx, 0x483b48
mov dword [vtable.base::logger.0], 0x478524
call fcn.00412d80
push 0x465040
call fcn.00428ece
push 0x4875dc
mov byte [ebp - 4], 0
call fcn.0042906f
add esp, 8
jmp 0x402dec