Function at 0x40b5a0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x46d7fc
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x491870]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491870]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x260]
cmp dword [ebp + 0xf88], 2
jge 0x40b64d
mov eax, dword [esp + 0x264]
imul eax, eax, 0xb0
lea ecx, [eax + 0x111]
add eax, 0x11f
mov dword [esp + 0x28], eax
or eax, 0xffffffff
push 1
lea edx, [esp + 0x24]
mov dword [ebp + 0xfc0], eax
mov dword [ebp + 0xfbc], eax
mov eax, dword [ebp + 0x20]
push edx
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 8
mov dword [esp + 0x38], 0x16
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [ebp]
mov eax, dword [edx + 0x15c]
mov ecx, ebp
call eax
jmp 0x40b9fd
mov edi, dword [esp + 0x264]
test edi, edi
jl 0x40ba27
cmp edi, dword [ebp + 0xf9c]
jge 0x40ba27
mov eax, dword [ebp + 0xf98]
lea ecx, [edi*4]
add eax, ecx
mov eax, dword [eax]
sub eax, 0x10
push eax
mov dword [esp + 0x1c], ecx
call fcn.00406f00
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
push 0x479e30
push edx
mov dword [esp + 0x264], 0
call fcn.0040c5a0
add esp, 0xc
push 0x479e28
push eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x264], 1
call fcn.00405ec0
add esp, 0xc
mov byte [esp + 0x258], 3
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b6f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x38]
push 0
mov eax, 4
call fcn.00404790
add esp, 4
cmp eax, 6
jne 0x40ba2c
lea eax, [ebp + 0xfc4]
mov ebx, edi
call fcn.0040c750
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [ebx]
mov eax, 0x10624dd3
mul ecx
mov ebx, edx
shr ebx, 6
cmp dword [esi - 0xc], 0
jge 0x40b741
or eax, 0xffffffff
jmp 0x40b75c
push 0x479e44
push esi
call fcn.0044e1de
add esp, 8
test eax, eax
jne 0x40b758
or eax, 0xffffffff
jmp 0x40b75c
sub eax, esi
sar eax, 1
push eax
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x1c]
call fcn.00405d80
xor eax, eax
push 0x1fe
push eax
lea ecx, [esp + 0x56]
mov byte [esp + 0x260], 4
push ecx
mov word [esp + 0x58], ax
call fcn.00451570
add esp, 0xc
lea eax, [ebp + 0xfdc]
push edi
call fcn.0040c830
add eax, 0x38
cmp dword [eax + 0x18], 8
jb 0x40b7a7
mov eax, dword [eax + 4]
jmp 0x40b7aa
add eax, 4
mov edx, dword [esp + 0x3c]
push ebx
push edx
push eax
push str.http:__record.4399.com_d.php_aweb.onlinegame_sserverS_slength_ldcid38714
lea eax, [esp + 0x5c]
push 0x100
push eax
call fcn.0044e418
mov ebx, dword [ebp + 0xfd0]
lea esi, [ebp + 0xfc4]
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jbe 0x40b7de
call fcn.00450114
mov edi, dword [esi]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
test edi, edi
jne 0x40b806
call fcn.00450114
xor eax, eax
mov ecx, dword [esp + 0x18]
add ebx, ecx
cmp ebx, dword [eax + 0x10]
ja 0x40b811
test edi, edi
je 0x40b80a
mov edi, dword [edi]
jmp 0x40b80c
mov eax, dword [edi]
jmp 0x40b7f3
xor edi, edi
cmp ebx, dword [edi + 0xc]
jae 0x40b816
call fcn.00450114
mov edx, dword [esp + 0x30]
push ebx
push edx
lea edi, [esp + 0x38]
call fcn.0040c7d0
push 0
push 0
lea eax, [esp + 0x54]
push eax
push 0x409680
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x264]
cmp esi, dword [ebp + 0xf88]
lea ebx, [ebp + 0xf80]
jge 0x40ba27
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + esi*4]
push 1
push esi
mov ecx, ebx
mov dword [esp + 0x38], edx
call fcn.0042bfbb
push 1
push esi
lea ecx, [ebp + 0xf94]
call fcn.0042c217
mov eax, dword [ebp + 0xfe8]
lea edi, [ebp + 0xfdc]
mov dword [esp + 0x18], eax
cmp eax, dword [edi + 0x10]
jbe 0x40b89d
call fcn.00450114
mov eax, dword [esp + 0x18]
mov ecx, dword [edi]
lea edx, [esp + 0x44]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
push edx
mov ecx, esi
lea eax, [esp + 0x1c]
call fcn.0040ca00
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0040c970
mov eax, dword [ebp + 0xf88]
cmp esi, eax
jl 0x40b8d5
dec eax
mov esi, eax
test esi, esi
jl 0x40ba27
cmp esi, dword [ebx + 8]
jge 0x40ba27
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + esi*4]
push eax
mov edi, ebp
call fcn.0040bb20
mov eax, dword [ebp + 0xf9c]
imul eax, eax, 0xb0
push 1
push 0x10
push 0x1c
push 5
add eax, 0x78
push eax
lea ecx, [ebp + 0x6d0]
mov dword [ebp + 0xfb8], esi
call fcn.0042b389
mov eax, dword [ebp + 0xf88]
mov esi, dword [esp + 0x30]
imul eax, eax, 0xb0
push 0
add eax, 0x128
mov ebx, 3
push esi
mov dword [esp + 0x28], 0x78
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0x19
call dword [sym.imp.USER32.dll_SetParent]
push 0
push 0xf060
push 0x112
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [esp + 0x258], bl
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b992
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 0x20]
push 1
lea edx, [esp + 0x24]
push edx
or edi, 0xffffffff
push eax
mov dword [ebp + 0xfc0], edi
mov dword [ebp + 0xfbc], edi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov byte [esp + 0x258], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b9dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov dword [esp + 0x258], edi
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40b9fd
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.0044dee5
add esp, 0x248
ret 8
call fcn.0042151a
imul edi, edi, 0xb0
lea ecx, [edi + 0x78]
add edi, 0x128
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 3
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x19
jmp 0x40b996