Function at 0x402b10
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4914dc
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b3cc4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x24]
mov dword [ebx], vtable.CMainWnd.0
mov dword [ebx + 0x10], vtable.CMainWnd.1.0
mov dword [ebx + 0x14], vtable.CMainWnd.2.0
mov dword [ebx + 0x18], vtable.CMainWnd.3.0
lea esi, [ebx + 0x3e4]
mov dword [esp + 0x1c], 6
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x402cb8
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
xor ebp, ebp
add ecx, edx
je 0x402cb8
xor ebx, ebx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x402bbc
call fcn.00472e89
mov ecx, dword [esi + 0xc]
mov edi, dword [ebx + ecx]
cmp dword [edi + 4], 0
je 0x402c00
mov edx, dword [edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 0x14]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402beb
mov ecx, dword [edi + 0x14]
push ecx
jmp 0x402c04
mov edx, dword [edi + 4]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [edi + 4], 0
jmp 0x402c0a
mov eax, dword [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
call fcn.0040d1a0
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebp, ecx
jb 0x402c2f
call fcn.00472e89
mov edx, dword [esi + 0xc]
cmp dword [ebx + edx], 0
je 0x402c92
mov ecx, dword [esi + 0x10]
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x402c56
call fcn.00472e89
mov ecx, dword [esi + 0xc]
mov ecx, dword [ebx + ecx]
test ecx, ecx
je 0x402c69
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push 1
call eax
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebp, ecx
jb 0x402c88
call fcn.00472e89
mov edx, dword [esi + 0xc]
mov dword [ebx + edx], 0
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc ebp
add eax, edx
add ebx, 0xc
cmp ebp, eax
jb 0x402b9d
mov ebx, dword [esp + 0x24]
lea edi, [ebx + 0x3cc]
mov eax, edi
call fcn.00405ad0
mov eax, esi
call fcn.00405bc0
mov eax, dword [0x4b9780]
xor ebp, ebp
cmp eax, ebp
je 0x402ce6
push eax
call fcn.004658a2
add esp, 4
mov dword [0x4b9780], ebp
mov eax, dword [esi + 0xc]
cmp eax, ebp
je 0x402cf6
push eax
call fcn.004658a2
add esp, 4
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov esi, dword [esi]
push esi
call fcn.004658a2
mov eax, dword [edi + 0xc]
add esp, 4
cmp eax, ebp
je 0x402d1a
push eax
call fcn.004658a2
add esp, 4
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], ebp
mov edi, dword [edi]
push edi
call fcn.004658a2
mov byte [esp + 0x20], 3
mov eax, dword [ebx + 0x3c8]
sub eax, 0x10
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c], 2
mov eax, dword [ebx + 0x3c4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c], 1
mov eax, dword [ebx + 0x3c0]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402da3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c], 0
mov eax, dword [ebx + 0x3a8]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402dca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040ed80
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4