Function at 0x40af80
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x46d9bc
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x491830]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491830]
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 0x40b02d
mov eax, dword [esp + 0x264]
imul eax, eax, 0xb0
lea ecx, [eax + 0x11b]
add eax, 0x129
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 0x40b3e4
mov edi, dword [esp + 0x264]
test edi, edi
jl 0x40b40e
cmp edi, dword [ebp + 0xf9c]
jge 0x40b40e
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.00406860
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
push 0x479a78
push edx
mov dword [esp + 0x264], 0
call fcn.0040bf90
add esp, 0xc
push 0x479a70
push eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x264], 1
call fcn.00405c30
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 0x40b0d5
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
mov ecx, 0x4786c4
call fcn.004045d0
add esp, 4
cmp eax, 6
jne 0x40b413
lea eax, [ebp + 0xfc4]
mov ebx, edi
call fcn.0040c0e0
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 0x40b126
or eax, 0xffffffff
jmp 0x40b141
push 0x479a8c
push esi
call fcn.0044e5ee
add esp, 8
test eax, eax
jne 0x40b13d
or eax, 0xffffffff
jmp 0x40b141
sub eax, esi
sar eax, 1
push eax
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x1c]
call fcn.00405af0
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.00451520
add esp, 0xc
lea eax, [ebp + 0xfdc]
push edi
call fcn.0040c220
add eax, 0x38
cmp dword [eax + 0x18], 8
jb 0x40b18c
mov eax, dword [eax + 4]
jmp 0x40b18f
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_ldcid38965
lea eax, [esp + 0x5c]
push pe_nt_image_headers32
push eax
call fcn.0044e767
mov ebx, dword [ebp + 0xfd0]
lea esi, [ebp + 0xfc4]
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jbe 0x40b1c3
call fcn.00450294
mov edi, dword [esi]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
test edi, edi
jne 0x40b1eb
call fcn.00450294
xor eax, eax
mov ecx, dword [esp + 0x18]
add ebx, ecx
cmp ebx, dword [eax + 0x10]
ja 0x40b1f6
test edi, edi
je 0x40b1ef
mov edi, dword [edi]
jmp 0x40b1f1
mov eax, dword [edi]
jmp 0x40b1d8
xor edi, edi
cmp ebx, dword [edi + 0xc]
jae 0x40b1fb
call fcn.00450294
mov edx, dword [esp + 0x30]
push ebx
push edx
lea edi, [esp + 0x38]
call fcn.0040c160
push 0
push 0
lea eax, [esp + 0x54]
push eax
push 0x409010
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 0x40b40e
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.0042c2d0
push 1
push esi
lea ecx, [ebp + 0xf94]
call fcn.0042c52c
mov eax, dword [ebp + 0xfe8]
lea edi, [ebp + 0xfdc]
mov dword [esp + 0x18], eax
cmp eax, dword [edi + 0x10]
jbe 0x40b282
call fcn.00450294
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.0040c3f0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0040c360
mov eax, dword [ebp + 0xf88]
cmp esi, eax
jl 0x40b2ba
dec eax
mov esi, eax
test esi, esi
jl 0x40b40e
cmp esi, dword [ebx + 8]
jge 0x40b40e
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + esi*4]
push eax
mov edi, ebp
call fcn.0040b510
mov eax, dword [ebp + 0xf9c]
imul eax, eax, 0xb0
push 1
push 0x10
push 0x1c
push 5
add eax, 0x82
push eax
lea ecx, [ebp + 0x6d0]
mov dword [ebp + 0xfb8], esi
call fcn.0042b7f4
mov eax, dword [ebp + 0xf88]
mov esi, dword [esp + 0x30]
imul eax, eax, 0xb0
push 0
add eax, 0x132
mov ebx, 3
push esi
mov dword [esp + 0x28], 0x82
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 0x40b379
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 0x40b3c4
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 0x40b3e4
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.0044e3af
add esp, 0x248
ret 8
call fcn.00421a4a
imul edi, edi, 0xb0
lea ecx, [edi + 0x82]
add edi, 0x132
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 3
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x19
jmp 0x40b37d