Function at 0x401d10
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4397f5
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x448e28]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
mov dword [ebp], vtable.CDlgFloat.0
mov dword [ebp + 0x54], vtable.CDlgFloat.1.0
mov dword [esp + 0x20], 0xe
mov esi, dword [0x44d374]
xor ebx, ebx
cmp esi, ebx
je 0x401d9c
lea edi, [esi + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x401d7d
push eax
call fcn.00420af1
add esp, 4
mov dword [esi + 0x24], ebx
mov byte [esi + 4], bl
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x44d374]
cmp ecx, ebx
je 0x401d96
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [0x44d374], ebx
mov byte [esp + 0x20], 0xd
mov eax, dword [ebp + 0x100]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401dc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x20], 0xc
mov eax, dword [ebp + 0xfc]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401dea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x20], 0xb
mov eax, dword [ebp + 0xf8]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xe8]
cmp eax, ebx
je 0x401e35
mov edi, dword [ebp + 0xec]
call fcn.00406950
mov eax, dword [ebp + 0xe8]
push eax
call fcn.00412e16
add esp, 4
mov eax, dword [ebp + 0xdc]
push eax
mov dword [ebp + 0xe8], ebx
mov dword [ebp + 0xec], ebx
mov dword [ebp + 0xf0], ebx
call fcn.00412e16
add esp, 4
lea esi, [ebp + 0xbc]
call fcn.004060e0
mov esi, dword [esi]
push esi
call fcn.00412e16
mov byte [esp + 0x24], 8
mov eax, dword [ebp + 0xb8]
sub eax, 0x10
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x20], 7
mov eax, dword [ebp + 0xb4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401eba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x20], 6
mov eax, dword [ebp + 0xac]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ee1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x20], 5
mov eax, dword [ebp + 0xa8]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x20], 4
mov eax, dword [ebp + 0xa4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x20], 3
mov eax, dword [ebp + 0xa0]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x90]
cmp eax, ebx
je 0x401f69
push eax
call fcn.00412e16
add esp, 4
mov eax, dword [ebp + 0x84]
push eax
mov dword [ebp + 0x90], ebx
mov dword [ebp + 0x94], ebx
mov dword [ebp + 0x98], ebx
call fcn.00412e16
mov eax, dword [ebp + 0x78]
add esp, 4
cmp eax, ebx
je 0x401fab
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 0x7c]
push edx
push ecx
call fcn.0040b4d0
mov eax, dword [ebp + 0x78]
push eax
call fcn.00412e16
add esp, 0xc
mov eax, dword [ebp + 0x6c]
push eax
mov dword [ebp + 0x78], ebx
mov dword [ebp + 0x7c], ebx
mov dword [ebp + 0x80], ebx
call fcn.00412e16
mov eax, dword [ebp + 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
mov dword [ebp + 0x54], vtable.base_thread.0
cmp eax, ebx
je 0x401fdd
push eax
call esi
mov dword [ebp + 0x60], ebx
mov eax, dword [ebp + 0x64]
cmp eax, ebx
je 0x401fea
push eax
call esi
mov dword [ebp + 0x64], ebx
mov eax, dword [ebp + 0x5c]
cmp eax, ebx
je 0x402009
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp eax, 1
jne 0x402009
mov eax, dword [ebp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, ebp
mov dword [esp + 0x20], 0xffffffff
call fcn.00416fcd
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret