Function at 0x529610
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0ef0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x140]
mov ecx, dword [esi + 0x144]
or eax, ecx
mov dword [ebp - 0x68], esi
mov dword [ebp - 4], ebx
jne 0x529747
mov al, byte [esi + 0x7e0]
test al, al
jne 0x529747
mov ecx, dword [esi + 0x12c]
mov eax, 1
cmp ecx, eax
jle 0x529747
mov ecx, dword [esi + 0xc]
mov dl, byte [ecx + 0x14f]
test dl, dl
je 0x529747
mov edx, dword [esi + 0x1cc]
mov dword [edx + 0x3374], eax
mov eax, dword [esi + 0x1cc]
mov dword [eax + 0x3358], ebx
mov dword [eax + 0x335c], ebx
mov ecx, dword [esi + 0x1cc]
mov dword [ecx + 0x3340], ebx
mov dword [ecx + 0x3344], ebx
mov edx, dword [esi + 0x1cc]
mov byte [edx + 0x63f3], 1
mov eax, dword [esi + 0x1cc]
mov edx, dword [eax + 0x3320]
lea ecx, [eax + 0x3320]
add eax, 0x63e4
push eax
call dword [edx + 0x10]
mov eax, dword [esi + 0x3d4]
cmp eax, 0x80
jae 0x529709
mov ecx, dword [esi + 0x1cc]
mov edx, dword [ecx + 0x63e4]
mov dword [esi + eax*4 + 0x3d8], edx
mov eax, dword [esi + 0x3d4]
inc eax
mov dword [esi + 0x3d4], eax
mov eax, dword [esi + 0x5d8]
cmp eax, 0x80
jae 0x529736
mov ecx, dword [esi + 0x1cc]
mov edx, dword [ecx + 0x63e4]
mov dword [esi + eax*4 + 0x5dc], edx
mov eax, dword [esi + 0x5d8]
inc eax
mov dword [esi + 0x5d8], eax
mov eax, 2
mov dword [esi + 0x138], eax
mov dword [esi + 0x130], eax
mov eax, dword [0x67af5c]
push 1
push eax
mov ecx, esi
call fcn.00547f50
mov ecx, esi
call fcn.00548990
mov ecx, esi
call fcn.005490a0
mov eax, dword [esi + 0x13c]
mov ecx, dword [esi + 0x148]
mov edx, dword [esi + 0x14c]
add eax, 0xfffffffb
mov dword [ebp - 0x38], ecx
mov ecx, esi
mov dword [esi + 0x13c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], edx
call fcn.005481b0
lea eax, [ebp - 0xac]
mov dword [ebp - 0x5c], 3
push eax
mov dword [ebp - 0x58], ebx
call fcn.005801dc
lea ecx, [ebp - 0x74]
push ecx
call fcn.005801dc
add esp, 8
xor edi, edi
xor edx, edx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x11], 1
xor ecx, ecx
cmp ecx, dword [esi + 0x130]
jge 0x52981b
mov eax, ecx
mov ebx, dword [esi + 0x1cc]
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
shl eax, 5
add eax, ebx
xor ebx, ebx
cmp dword [eax + 0x54], ebx
je 0x529818
inc edx
cmp dword [eax + 0x2b8], ebx
jg 0x529812
mov ebx, dword [eax + 0x80]
cmp dword [ebx + 0x24], 2
jne 0x529816
xor ebx, ebx
cmp dword [eax + 0x3314], ebx
ja 0x529812
cmp byte [eax + 0x3318], bl
je 0x529818
inc edi
inc ecx
jmp 0x5297c4
xor ebx, ebx
inc ecx
jmp 0x5297c4
cmp edi, 1
jne 0x52982b
cmp edx, edi
jne 0x52982b
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x5c], edi
cmp dword [esi + 0x38], ebx
je 0x52988e
lea ecx, [esi + 0x48]
call fcn.00507640
mov ecx, dword [esi + 0x140]
mov edx, dword [esi + 0x144]
lea eax, [esi + 0x20]
mov dword [esi + 0x30], ebx
push eax
push 0x1471
mov dword [eax], ecx
mov ecx, dword [esi + 0x148]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x14c]
mov eax, dword [esi + 0x10]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
push 0x111
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00547e60
test al, al
mov byte [ebp - 0x3c], al
je 0x5298bd
lea edx, [ebp - 0xa0]
push edx
call fcn.005801dc
mov eax, dword [esi + 0x148]
mov ecx, dword [esi + 0x14c]
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov al, byte [ebp - 0x11]
test al, al
je 0x5298e7
lea edx, [ebp - 0x5c]
lea eax, [esi + 0x5d8]
push edx
lea ecx, [esi + 0x3d4]
push eax
lea edx, [esi + 0x1d0]
push ecx
push edx
push ebx
call sub.WSOCK32.dll_select
mov edi, eax
jmp 0x5298f7
mov edi, 1
mov dword [ebp - 0x5c], 3
mov byte [ebp - 0x11], 1
cmp dword [esi + 0x38], ebx
je 0x52991a
lea ecx, [esi + 0x48]
call fcn.00507640
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x148]
mov ecx, dword [esi + 0x14c]
or eax, ecx
jne 0x52995f
lea eax, [ebp - 0x74]
push eax
call fcn.005801dc
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0xac]
sub ecx, edx
add esp, 4
cmp ecx, 0x12c
jle 0x52995f
mov eax, 0x7532
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x148]
mov eax, dword [esi + 0x14c]
cmp edi, 0xffffffff
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], eax
je 0x5299d0
cmp edi, ebx
je 0x5299d0
xor edi, edi
cmp edi, dword [esi + 0x130]
jge 0x5299d7
mov eax, edi
shl eax, 4
add eax, edi
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x1cc]
lea edx, [edi + ecx*8]
shl edx, 5
lea ecx, [edx + eax]
mov eax, dword [edx + eax + 0x54]
cmp eax, ebx
je 0x5299cd
cmp dword [esi + 0x38], ebx
je 0x5299c8
lea ecx, [esi + 0x48]
call fcn.00507640
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00522340
inc edi
jmp 0x52997c
mov ecx, esi
call fcn.0052a670
mov ecx, dword [ebp - 0x3c]
push ecx
push ebx
mov ecx, esi
call fcn.00548280
lea edx, [ebp - 0x80]
push edx
call fcn.005801dc
mov ecx, dword [ebp - 0x80]
mov edi, dword [ebp - 0x74]
mov eax, ecx
add esp, 4
sub eax, edi
lea edx, [eax + eax*2]
lea eax, [eax + edx*8]
lea eax, [eax + eax*4]
shl eax, 3
mov edx, eax
mov eax, dword [ebp - 0x70]
and eax, 0xffff
sub edx, eax
mov eax, dword [ebp - 0x7c]
mov edi, eax
and edi, 0xffff
add edx, edi
cmp edx, 0xfa
jl 0x529aab
lea ecx, [ebp - 0x74]
push ecx
call fcn.005801dc
add esp, 4
xor ebx, ebx
cmp ebx, dword [esi + 0x130]
jge 0x529aa5
mov eax, ebx
mov ecx, dword [esi + 0x1cc]
shl eax, 4
add eax, ebx
lea edx, [eax + eax*2]
lea eax, [ebx + edx*8]
shl eax, 5
lea edi, [eax + ecx]
mov eax, dword [eax + ecx + 0x54]
test eax, eax
je 0x529aa2
mov edx, dword [edi + 0x70]
mov eax, dword [edx]
cmp dword [eax], 0
je 0x529aa2
mov ecx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
or ecx, eax
je 0x529aa2
lea eax, [edi + 0x2d0]
mov ecx, edi
push eax
call fcn.0050ace0
mov edx, dword [edi + 0x70]
lea eax, [edi + 0x2d0]
push eax
push 0x13ef
mov eax, dword [edx]
push 0x111
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
inc ebx
jmp 0x529a38
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x80]
mov edx, dword [esi + 0x40]
test edx, edx
jne 0x529c5c
mov edi, dword [esi + 0x14c]
mov ebx, dword [ebp - 0x34]
mov edx, dword [esi + 0x148]
cmp ebx, edi
jg 0x529c5c
jl 0x529ad8
cmp dword [ebp - 0x38], edx
jae 0x529c5c
cmp dword [ebp - 0x54], edx
jne 0x529c5c
cmp dword [ebp - 0x50], edi
jne 0x529c5c
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
or edx, edi
lea edx, [ecx + ecx*2]
lea ecx, [ecx + edx*8]
lea ecx, [ecx + ecx*4]
jne 0x529b11
and eax, 0xffff
lea eax, [eax + ecx*8]
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
jmp 0x529c64
and eax, 0xffff
lea eax, [eax + ecx*8]
mov ecx, dword [esi + 0xc]
cdq
fld qword [ecx + 0x3c0]
fsqrt
mov edi, eax
mov ebx, edx
fmul qword [0x5ee3d0]
fadd qword [ecx + 0x3b0]
fcom qword [ecx + 0x3d0]
fnstsw ax
test ah, 1
je 0x529b47
fstp qword [ebp - 0x64]
jmp 0x529b5b
mov edx, dword [ecx + 0x3d0]
mov eax, dword [ecx + 0x3d4]
fstp st(0)
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], eax
fld qword [ecx + 0x3b8]
fsqrt
fmul qword [0x5ee3d0]
fadd qword [ecx + 0x3a8]
fcom qword [ecx + 0x3c8]
fnstsw ax
test ah, 1
jne 0x529b84
fstp st(0)
fld qword [ecx + 0x3c8]
fld qword [ebp - 0x64]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x529b95
fstp st(0)
fld qword [ebp - 0x64]
fmul qword [0x5eeb20]
fadd qword [0x5eeb18]
call fcn.0057edf8
mov ecx, dword [ebp - 0x28]
sub edi, ecx
mov ecx, dword [ebp - 0x24]
sbb ebx, ecx
cmp ebx, edx
jl 0x529c64
jg 0x529bc2
cmp edi, eax
jbe 0x529c64
xor edi, edi
mov ecx, esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call fcn.00556460
cmp eax, edi
je 0x529c64
cmp dword [esi + 0x38], edi
je 0x529bf4
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x1cc]
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esi + 0x1cc]
call fcn.00525c80
mov ecx, dword [esi + 0x1cc]
mov eax, dword [ecx]
lea edx, [ecx + 0x30c4]
push edx
call dword [eax + 0x10]
cmp eax, edi
jne 0x52a465
mov ecx, dword [esi + 0x1cc]
push edi
call fcn.0051d5d0
cmp eax, edi
jne 0x52a465
mov ecx, dword [esi + 0x14c]
mov edx, dword [0x67af5c]
mov eax, dword [esi + 0x148]
mov dword [ebp - 0x34], ecx
push 1
push edx
mov ecx, esi
mov dword [ebp - 0x38], eax
call fcn.00547f50
jmp 0x529c64
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0xb0], 2
jne 0x52a01a
mov edi, dword [esi + 0x144]
mov edx, dword [esi + 0x140]
mov eax, edi
test eax, eax
jl 0x529ca2
jg 0x529c8d
cmp edx, 0x32
jbe 0x529ca2
mov eax, dword [esi + 0x1cc]
mov ebx, dword [eax + 0x44]
test ebx, ebx
jl 0x529cc3
jg 0x529ca2
cmp dword [eax + 0x40], 0x32
jb 0x529cc3
test edi, edi
jg 0x529ced
jl 0x529cad
cmp edx, 0x32
ja 0x529ced
mov eax, dword [esi + 0x1cc]
mov ebx, dword [eax + 0x44]
cmp ebx, edi
jg 0x529ced
jl 0x529cc3
mov edi, dword [eax + 0x40]
cmp edi, edx
jae 0x529ced
mov dl, byte [eax + 0x94]
test dl, dl
je 0x52a01a
mov edx, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
or edx, edi
jne 0x52a01a
mov dl, byte [eax + 0x95]
test dl, dl
je 0x52a01a
call fcn.0055ce60
mov cl, byte [0x67a144]
mov dword [ebp - 0x18], eax
test cl, cl
jne 0x529d0c
mov ecx, dword [esi + 0xc]
mov dl, byte [ecx + 0x2c0]
test dl, dl
jne 0x529d1a
mov cl, byte [esi + 0x7e0]
test cl, cl
je 0x529da9
mov edx, dword [esi + 0xc]
cmp dword [edx + 0xb0], 2
jne 0x529d2e
xor edi, edi
cmp eax, edi
je 0x529dab
jmp 0x529d30
xor edi, edi
mov ecx, dword [esi + 0x1cc]
mov eax, dword [ecx]
call dword [eax + 0x18]
lea ecx, [esi + 0x48]
call fcn.00502050
mov dword [esi + 0x80], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x148], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x14c], edi
mov al, byte [0x67a144]
test al, al
jne 0x529d93
mov ecx, dword [esi + 0xc]
mov al, byte [ecx + 0x2c0]
test al, al
je 0x529d93
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x756a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
cmp dword [esi + 0x70], edi
jle 0x529e26
mov ebx, dword [esi + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx + 0xcc]
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x529e26
mov ebx, dword [ebx + 0xbc]
test ebx, ebx
je 0x529dea
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push edx
call fcn.00580b90
add esp, 0xc
test eax, eax
je 0x529e26
mov edx, dword [esi + 0x14]
mov eax, dword [edx]
test eax, eax
je 0x529e08
mov ecx, dword [esi + 0x70]
push ecx
push 0x13f8
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x18]
mov eax, dword [edx]
test eax, eax
je 0x529e26
mov ecx, dword [esi + 0x70]
push ecx
push 0x13f8
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x52a01a
mov eax, dword [esi + 0xf4]
test eax, eax
jne 0x529fbd
mov al, byte [0x67a144]
test al, al
jne 0x529f3b
mov eax, dword [esi + 0xc]
mov byte [ebp - 0x12], 0
mov edx, dword [eax + 0xbc]
test edx, edx
je 0x529eaa
mov ebx, dword [eax + 0xe4]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x529eaa
mov edi, edx
mov eax, ebx
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x529e9d
test cl, cl
je 0x529e99
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x529e9d
add eax, 2
add edi, 2
test cl, cl
jne 0x529e75
xor eax, eax
jmp 0x529ea2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x529eaa
mov byte [ebp - 0x12], 1
mov edi, dword [esi + 0x144]
mov edx, dword [esi + 0x140]
xor ebx, ebx
cmp edi, ebx
jl 0x529ee3
jg 0x529ec2
cmp edx, ebx
jbe 0x529ee3
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xe8]
mov eax, dword [eax + 0xec]
cmp eax, ebx
jl 0x529ee3
jg 0x529edb
cmp ecx, ebx
jbe 0x529ee3
cmp ecx, edx
jne 0x529eea
cmp eax, edi
jne 0x529eea
mov al, byte [ebp - 0x12]
test al, al
je 0x529f3b
mov eax, dword [esi + 0xc]
push 0x679a28
lea ecx, [eax + 0xe4]
call fcn.0059aec6
mov eax, dword [esi + 0xc]
push 0x50040
mov dword [eax + 0xe8], ebx
mov dword [eax + 0xec], ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [0x67a70c]
mov edx, dword [ecx + 8]
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x529fbd
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x529f50
mov eax, ecx
jmp 0x529f53
add eax, 0x38
push 0x2e
push eax
call fcn.0057e85a
mov edi, eax
add esp, 8
test edi, edi
je 0x529fbd
push 0x6561a4
push edi
call fcn.00580edc
add esp, 8
test eax, eax
je 0x529fbd
push 0x654800
push edi
call fcn.00580edc
add esp, 8
test eax, eax
je 0x529fbd
mov ecx, dword [esi + 0xc]
mov eax, dword [0x67aedc]
push 0x50004
mov edx, dword [ecx + 8]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x529fbd
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x52a01a
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x529fd2
mov eax, ecx
jmp 0x529fd5
add eax, 0x38
push 0x2e
push eax
call fcn.0057e85a
mov edi, eax
add esp, 8
test edi, edi
je 0x52a01a
push 0x6561a4
push edi
call fcn.00580edc
add esp, 8
test eax, eax
je 0x52a01a
push 0x654800
push edi
call fcn.00580edc
add esp, 8
test eax, eax
je 0x52a01a
mov ecx, dword [esi + 0xc]
call fcn.0055cf20
test eax, eax
jne 0x52a465
mov al, byte [ebp - 0x3c]
test al, al
je 0x52a24b
mov ecx, dword [esi + 0x14c]
mov eax, dword [esi + 0x148]
test ecx, ecx
jl 0x52a24b
jg 0x52a046
cmp eax, 0x400
jbe 0x52a24b
mov ecx, dword [0x679bb0]
mov ebx, dword [0x679bb4]
lea edx, [ebp - 0x94]
mov dword [ebp - 0x4c], ecx
push edx
call fcn.005801dc
mov eax, dword [esi + 0x148]
mov edi, dword [ebp - 0x44]
mov ecx, dword [esi + 0x14c]
mov edx, dword [ebp - 0x40]
add esp, 4
sub eax, edi
sbb ecx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
js 0x52a24b
jg 0x52a090
test eax, eax
jbe 0x52a24b
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0xa0]
sub eax, edx
mov edx, dword [ebp - 0x9c]
and edx, 0xffff
lea ecx, [eax + eax*2]
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 0x90]
and ecx, 0xffff
lea eax, [eax + eax*4]
shl eax, 3
sub eax, edx
add eax, ecx
mov dword [ebp - 0x18], eax
jne 0x52a0d2
mov dword [ebp - 0x18], 1
fild qword [ebp - 0x30]
fmul dword [0x5d1d84]
fidiv dword [ebp - 0x18]
call fcn.0057edf8
mov edi, edx
mov ecx, eax
cmp edi, ebx
jl 0x52a24b
jg 0x52a0fa
cmp ecx, dword [ebp - 0x4c]
jbe 0x52a24b
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x18]
sub ecx, edx
cdq
sbb edi, ebx
push edx
push eax
push edi
push ecx
call fcn.00581190
mov ecx, dword [ebp - 0x4c]
push ebx
push ecx
push edx
push eax
call fcn.00580720
mov edi, eax
mov eax, dword [esi + 0x150]
cdq
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x4c]
push 0
push 2
push ebx
push edx
mov dword [ebp - 0x20], eax
call fcn.00580720
cmp dword [ebp - 0x1c], edx
jg 0x52a158
jl 0x52a143
cmp dword [ebp - 0x20], eax
jae 0x52a158
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
jmp 0x52a186
mov ecx, dword [ebp - 0x4c]
push 0
push 9
push ebx
push ecx
call fcn.00581190
push 0
push 0xa
push edx
push eax
call fcn.00580720
cmp dword [ebp - 0x1c], edx
jg 0x52a186
jl 0x52a17d
cmp dword [ebp - 0x20], eax
jae 0x52a186
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, 0x2ee0
jle 0x52a195
mov edi, 0x2ee0
jmp 0x52a19d
test edi, edi
jle 0x52a24b
mov eax, dword [esi + 0x7dc]
cmp eax, 0xffffffff
je 0x52a244
lea ecx, [esi + 0x1d0]
lea ebx, [esi + 0x5d8]
mov dword [esi + 0x3d4], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [esi + 0x1d4], eax
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov eax, dword [ebx]
cmp eax, 0x80
jae 0x52a1f4
mov edx, dword [esi + 0x7dc]
mov dword [esi + eax*4 + 0x5dc], edx
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [ebp - 0x88], edx
lea eax, [edx + edx*2]
lea edx, [edx + eax*8]
lea edx, [edx + edx*4]
shl edx, 3
sub edi, edx
lea eax, [edi + edi*2]
lea edi, [edi + eax*8]
lea eax, [ebp - 0x88]
push eax
lea eax, [esi + 0x3d4]
lea edx, [edi + edi*4]
push ebx
push eax
push ecx
shl edx, 3
push 0
mov dword [ebp - 0x84], edx
call sub.WSOCK32.dll_select
jmp 0x52a24b
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.0052a480
mov edi, eax
test edi, edi
jne 0x52a26d
mov ecx, esi
call fcn.0052a7b0
mov ecx, esi
call fcn.005490d0
xor ebx, ebx
jmp 0x52982b
mov eax, dword [esi + 0x38]
test eax, eax
je 0x52a292
lea ecx, [esi + 0x48]
call fcn.00507640
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0x753c
je 0x52a3f4
cmp edi, 0xffffffff
je 0x52a3f4
mov ecx, dword [esi + 0x14c]
mov edx, dword [esi + 0x148]
mov eax, dword [0x67af60]
push ecx
push edx
lea ecx, [ebp - 0x12c]
push eax
push ecx
call fcn.0057f2ea
add esp, 0x10
lea edx, [ebp - 0x12c]
mov ecx, esi
push 1
push edx
call fcn.00547f50
mov eax, dword [esi + 0x148]
mov edx, dword [esi + 0x140]
mov ecx, dword [esi + 0x14c]
mov edi, dword [esi + 0x144]
cmp eax, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x2c], ecx
jne 0x52a305
mov eax, ecx
cmp eax, edi
je 0x52a36b
mov eax, edx
or eax, edi
je 0x52a36b
mov ebx, dword [esi + 0xc]
mov eax, edx
mov ecx, edi
mov ebx, dword [ebx + 0x2c8]
mov dword [ebp - 0x30], ebx
add eax, ebx
mov ebx, 0
adc ecx, ebx
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
jne 0x52a338
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x50]
cmp eax, ecx
je 0x52a36b
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
add edx, esi
adc edi, ebx
cmp eax, edi
jl 0x52a462
jg 0x52a355
cmp dword [ebp - 0x20], edx
jbe 0x52a462
mov eax, 0x7570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp ebx, dword [esi + 0x130]
jge 0x52a3da
mov eax, ebx
mov edx, dword [esi + 0x1cc]
shl eax, 4
add eax, ebx
lea eax, [eax + eax*2]
lea ecx, [ebx + eax*8]
shl ecx, 5
mov eax, dword [ecx + edx + 0x54]
lea edi, [ecx + edx]
test eax, eax
je 0x52a3d7
mov eax, dword [edi + 0x70]
mov ecx, dword [eax]
cmp dword [ecx], 0
je 0x52a3d7
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
or edx, eax
je 0x52a3d7
lea eax, [edi + 0x2d0]
mov ecx, edi
push eax
call fcn.0050ace0
lea eax, [edi + 0x2d0]
push eax
mov eax, dword [edi + 0x70]
push 0x13ef
push 0x111
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
inc ebx
jmp 0x52a36d
mov ecx, esi
call fcn.005490d0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
mov ecx, dword [esi + 0x148]
mov edx, dword [0x67af54]
push eax
push ecx
lea eax, [ebp - 0x12c]
push edx
push eax
call fcn.0057f2ea
add esp, 0x10
lea ecx, [ebp - 0x12c]
push 1
push ecx
mov ecx, esi
call fcn.00547f50
mov esi, dword [esi + 0xf8]
test esi, esi
je 0x52a43c
cmp edi, 0x753c
mov eax, esi
je 0x52a465
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret