Function at 0x4078f0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x479dd6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4985d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
mov dword [esi], vtable.CGameBoxWnd.0
mov dword [esp + 0x20], 0x28
mov ecx, dword [esi + 0x544]
xor ebx, ebx
cmp ecx, ebx
je 0x40794d
mov eax, dword [ecx]
mov edx, dword [eax + 0x60]
call edx
mov ecx, dword [esi + 0x544]
cmp ecx, ebx
je 0x40794d
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov ebp, dword [esi + 0xbf8]
cmp ebp, ebx
mov edi, dword [sym.imp.USER32.dll_DestroyWindow]
je 0x40797d
mov eax, ebp
call fcn.00425200
mov eax, dword [ebp + 0x30]
push eax
call edi
mov ecx, dword [esi + 0xbf8]
cmp ecx, ebx
je 0x40797d
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push 1
call eax
mov ebp, dword [esi + 0xbfc]
cmp ebp, ebx
je 0x4079a7
mov eax, ebp
call fcn.00425200
mov ecx, dword [ebp + 0x30]
push ecx
call edi
mov ecx, dword [esi + 0xbfc]
cmp ecx, ebx
je 0x4079a7
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push 1
call eax
mov ebp, dword [esi + 0xc00]
cmp ebp, ebx
je 0x4079d1
mov eax, ebp
call fcn.00425200
mov ecx, dword [ebp + 0x30]
push ecx
call edi
mov ecx, dword [esi + 0xc00]
cmp ecx, ebx
je 0x4079d1
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push 1
call eax
mov ebp, dword [esi + 0xc04]
cmp ebp, ebx
je 0x4079fb
mov eax, ebp
call fcn.00425200
mov ecx, dword [ebp + 0x30]
push ecx
call edi
mov ecx, dword [esi + 0xc04]
cmp ecx, ebx
je 0x4079fb
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push 1
call eax
mov ebp, dword [esi + 0xc08]
cmp ebp, ebx
je 0x407a25
mov eax, ebp
call fcn.00425200
mov ecx, dword [ebp + 0x30]
push ecx
call edi
mov ecx, dword [esi + 0xc08]
cmp ecx, ebx
je 0x407a25
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push 1
call eax
mov ebp, dword [esi + 0xc0c]
cmp ebp, ebx
je 0x407a4f
mov eax, ebp
call fcn.00425200
mov ecx, dword [ebp + 0x30]
push ecx
call edi
mov ecx, dword [esi + 0xc0c]
cmp ecx, ebx
je 0x407a4f
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push 1
call eax
mov ebp, dword [esi + 0xc10]
cmp ebp, ebx
je 0x407a79
mov eax, ebp
call fcn.00425200
mov ecx, dword [ebp + 0x30]
push ecx
call edi
mov ecx, dword [esi + 0xc10]
cmp ecx, ebx
je 0x407a79
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push 1
call eax
mov ecx, dword [esi + 0x2b0]
cmp ecx, ebx
je 0x407a92
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [esi + 0x2b0], ebx
mov ecx, dword [esi + 0x2b4]
cmp ecx, ebx
je 0x407aab
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [esi + 0x2b4], ebx
mov ecx, dword [esi + 0x2b8]
cmp ecx, ebx
je 0x407ac4
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [esi + 0x2b8], ebx
mov eax, dword [esi + 0xbbc]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
je 0x407afa
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], ebx
call edi
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0xbbc]
push edx
push eax
call ebp
mov dword [esi + 0xbbc], ebx
mov eax, dword [esi + 0xbc0]
cmp eax, ebx
je 0x407b1e
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], ebx
call edi
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0xbc0]
push edx
push eax
call ebp
lea ecx, [esi + 0x548]
mov byte [esp + 0x20], 0x27
call fcn.0040f290
mov byte [esp + 0x20], 0x26
mov eax, dword [esi + 0x53c]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x20], 0x25
mov eax, dword [esi + 0x2c4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x20], 0x24
mov eax, dword [esi + 0x2c0]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ba3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x20], 0x23
mov eax, dword [esi + 0x2bc]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407bca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0x164]
mov byte [esp + 0x20], 0x22
call fcn.00423ee0
lea ecx, [esi + 0x15c]
mov byte [esp + 0x20], 0x21
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x154]
mov byte [esp + 0x20], 0x20
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x14c]
mov byte [esp + 0x20], 0x1f
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x144]
mov byte [esp + 0x20], 0x1e
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x13c]
mov byte [esp + 0x20], 0x1d
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x134]
mov byte [esp + 0x20], 0x1c
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x12c]
mov byte [esp + 0x20], 0x1b
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x124]
mov byte [esp + 0x20], 0x1a
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x11c]
mov byte [esp + 0x20], 0x19
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x114]
mov byte [esp + 0x20], 0x18
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x10c]
mov byte [esp + 0x20], 0x17
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x104]
mov byte [esp + 0x20], 0x16
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0xfc]
mov byte [esp + 0x20], 0x15
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0xf4]
mov byte [esp + 0x20], 0x14
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0xec]
mov byte [esp + 0x20], 0x13
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0xe4]
mov byte [esp + 0x20], 0x12
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0xdc]
mov byte [esp + 0x20], 0x11
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0xd4]
mov byte [esp + 0x20], 0x10
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0xcc]
mov byte [esp + 0x20], 0xf
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
mov byte [esp + 0x20], 0xe
lea ecx, [esi + 0xc4]
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0xbc]
mov byte [esp + 0x20], 0xd
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0xb4]
mov byte [esp + 0x20], 0xc
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0xac]
mov byte [esp + 0x20], 0xb
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0xa4]
mov byte [esp + 0x20], 0xa
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x9c]
mov byte [esp + 0x20], 9
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x94]
mov byte [esp + 0x20], 8
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x8c]
mov byte [esp + 0x20], 7
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x84]
mov byte [esp + 0x20], 6
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x7c]
mov byte [esp + 0x20], 5
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x74]
mov byte [esp + 0x20], 4
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x6c]
mov byte [esp + 0x20], 3
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x64]
mov byte [esp + 0x20], 2
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x5c]
mov byte [esp + 0x20], 1
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x54]
mov byte [esp + 0x20], bl
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
call fcn.00428f7f
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4