Function at 0x52e8c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7650
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 + 0x150]
mov ecx, dword [esi + 0x154]
or eax, ecx
mov dword [ebp - 0x68], esi
mov dword [ebp - 4], ebx
jne 0x52e9f7
mov al, byte [esi + 0x7f0]
test al, al
jne 0x52e9f7
mov ecx, dword [esi + 0x13c]
mov eax, 1
cmp ecx, eax
jle 0x52e9f7
mov ecx, dword [esi + 0xc]
mov dl, byte [ecx + 0x14f]
test dl, dl
je 0x52e9f7
mov edx, dword [esi + 0x1dc]
mov dword [edx + 0x3374], eax
mov eax, dword [esi + 0x1dc]
mov dword [eax + 0x3358], ebx
mov dword [eax + 0x335c], ebx
mov ecx, dword [esi + 0x1dc]
mov dword [ecx + 0x3340], ebx
mov dword [ecx + 0x3344], ebx
mov edx, dword [esi + 0x1dc]
mov byte [edx + 0x63f3], 1
mov eax, dword [esi + 0x1dc]
mov edx, dword [eax + 0x3320]
lea ecx, [eax + 0x3320]
add eax, 0x63e4
push eax
call dword [edx + 0x10]
mov eax, dword [esi + 0x3e4]
cmp eax, 0x80
jae 0x52e9b9
mov ecx, dword [esi + 0x1dc]
mov edx, dword [ecx + 0x63e4]
mov dword [esi + eax*4 + 0x3e8], edx
mov eax, dword [esi + 0x3e4]
inc eax
mov dword [esi + 0x3e4], eax
mov eax, dword [esi + 0x5e8]
cmp eax, 0x80
jae 0x52e9e6
mov ecx, dword [esi + 0x1dc]
mov edx, dword [ecx + 0x63e4]
mov dword [esi + eax*4 + 0x5ec], edx
mov eax, dword [esi + 0x5e8]
inc eax
mov dword [esi + 0x5e8], eax
mov eax, 2
mov dword [esi + 0x148], eax
mov dword [esi + 0x140], eax
mov eax, dword [0x6834fc]
push 1
push eax
mov ecx, esi
call fcn.0054d430
mov ecx, esi
call fcn.0054de80
mov ecx, esi
call fcn.0054e590
mov eax, dword [esi + 0x14c]
mov ecx, dword [esi + 0x158]
mov edx, dword [esi + 0x15c]
add eax, 0xfffffffb
mov dword [ebp - 0x38], ecx
mov ecx, esi
mov dword [esi + 0x14c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], edx
call fcn.0054d690
lea eax, [ebp - 0xac]
mov dword [ebp - 0x5c], 3
push eax
mov dword [ebp - 0x58], ebx
call fcn.005860ec
lea ecx, [ebp - 0x74]
push ecx
call fcn.005860ec
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 + 0x140]
jge 0x52eacb
mov eax, ecx
mov ebx, dword [esi + 0x1dc]
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 0x52eac8
inc edx
cmp dword [eax + 0x2b8], ebx
jg 0x52eac2
mov ebx, dword [eax + 0x80]
cmp dword [ebx + 0x24], 2
jne 0x52eac6
xor ebx, ebx
cmp dword [eax + 0x3314], ebx
ja 0x52eac2
cmp byte [eax + 0x3318], bl
je 0x52eac8
inc edi
inc ecx
jmp 0x52ea74
xor ebx, ebx
inc ecx
jmp 0x52ea74
cmp edi, 1
jne 0x52eadb
cmp edx, edi
jne 0x52eadb
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x5c], edi
cmp dword [esi + 0x38], ebx
je 0x52eb3e
lea ecx, [esi + 0x48]
call fcn.0050c900
mov ecx, dword [esi + 0x150]
mov edx, dword [esi + 0x154]
lea eax, [esi + 0x20]
mov dword [esi + 0x30], ebx
push eax
push 0x1471
mov dword [eax], ecx
mov ecx, dword [esi + 0x158]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x15c]
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.0054d2c0
test al, al
mov byte [ebp - 0x3c], al
je 0x52eb6d
lea edx, [ebp - 0xa0]
push edx
call fcn.005860ec
mov eax, dword [esi + 0x158]
mov ecx, dword [esi + 0x15c]
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov al, byte [ebp - 0x11]
test al, al
je 0x52eb97
lea edx, [ebp - 0x5c]
lea eax, [esi + 0x5e8]
push edx
lea ecx, [esi + 0x3e4]
push eax
lea edx, [esi + 0x1e0]
push ecx
push edx
push ebx
call sub.WSOCK32.dll_select
mov edi, eax
jmp 0x52eba7
mov edi, 1
mov dword [ebp - 0x5c], 3
mov byte [ebp - 0x11], 1
cmp dword [esi + 0x38], ebx
je 0x52ebca
lea ecx, [esi + 0x48]
call fcn.0050c900
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 + 0x158]
mov ecx, dword [esi + 0x15c]
or eax, ecx
jne 0x52ec0f
lea eax, [ebp - 0x74]
push eax
call fcn.005860ec
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0xac]
sub ecx, edx
add esp, 4
cmp ecx, 0x12c
jle 0x52ec0f
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 + 0x158]
mov eax, dword [esi + 0x15c]
cmp edi, 0xffffffff
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], eax
je 0x52ec80
cmp edi, ebx
je 0x52ec80
xor edi, edi
cmp edi, dword [esi + 0x140]
jge 0x52ec87
mov eax, edi
shl eax, 4
add eax, edi
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x1dc]
lea edx, [edi + ecx*8]
shl edx, 5
lea ecx, [edx + eax]
mov eax, dword [edx + eax + 0x54]
cmp eax, ebx
je 0x52ec7d
cmp dword [esi + 0x38], ebx
je 0x52ec78
lea ecx, [esi + 0x48]
call fcn.0050c900
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.005275f0
inc edi
jmp 0x52ec2c
mov ecx, esi
call fcn.0052f920
mov ecx, dword [ebp - 0x3c]
push ecx
push ebx
mov ecx, esi
call fcn.0054d760
lea edx, [ebp - 0x80]
push edx
call fcn.005860ec
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 0x52ed5b
lea ecx, [ebp - 0x74]
push ecx
call fcn.005860ec
add esp, 4
xor ebx, ebx
cmp ebx, dword [esi + 0x140]
jge 0x52ed55
mov eax, ebx
mov ecx, dword [esi + 0x1dc]
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 0x52ed52
mov edx, dword [edi + 0x70]
mov eax, dword [edx]
cmp dword [eax], 0
je 0x52ed52
mov ecx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
or ecx, eax
je 0x52ed52
lea eax, [edi + 0x2d0]
mov ecx, edi
push eax
call fcn.0050ffa0
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 0x52ece8
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x80]
mov edx, dword [esi + 0x40]
test edx, edx
jne 0x52ef0c
mov edi, dword [esi + 0x15c]
mov ebx, dword [ebp - 0x34]
mov edx, dword [esi + 0x158]
cmp ebx, edi
jg 0x52ef0c
jl 0x52ed88
cmp dword [ebp - 0x38], edx
jae 0x52ef0c
cmp dword [ebp - 0x54], edx
jne 0x52ef0c
cmp dword [ebp - 0x50], edi
jne 0x52ef0c
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 0x52edc1
and eax, 0xffff
lea eax, [eax + ecx*8]
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
jmp 0x52ef14
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 [0x5f5bc0]
fadd qword [ecx + 0x3b0]
fcom qword [ecx + 0x3d0]
fnstsw ax
test ah, 1
je 0x52edf7
fstp qword [ebp - 0x64]
jmp 0x52ee0b
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 [0x5f5bc0]
fadd qword [ecx + 0x3a8]
fcom qword [ecx + 0x3c8]
fnstsw ax
test ah, 1
jne 0x52ee34
fstp st(0)
fld qword [ecx + 0x3c8]
fld qword [ebp - 0x64]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x52ee45
fstp st(0)
fld qword [ebp - 0x64]
fmul qword [0x5f6310]
fadd qword [0x5f6308]
call fcn.00584d08
mov ecx, dword [ebp - 0x28]
sub edi, ecx
mov ecx, dword [ebp - 0x24]
sbb ebx, ecx
cmp ebx, edx
jl 0x52ef14
jg 0x52ee72
cmp edi, eax
jbe 0x52ef14
xor edi, edi
mov ecx, esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call fcn.0055c630
cmp eax, edi
je 0x52ef14
cmp dword [esi + 0x38], edi
je 0x52eea4
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 + 0x1dc]
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esi + 0x1dc]
call fcn.0052af40
mov ecx, dword [esi + 0x1dc]
mov eax, dword [ecx]
lea edx, [ecx + 0x30c4]
push edx
call dword [eax + 0x10]
cmp eax, edi
jne 0x52f712
mov ecx, dword [esi + 0x1dc]
push edi
call fcn.00522880
cmp eax, edi
jne 0x52f712
mov ecx, dword [esi + 0x15c]
mov edx, dword [0x6834fc]
mov eax, dword [esi + 0x158]
mov dword [ebp - 0x34], ecx
push 1
push edx
mov ecx, esi
mov dword [ebp - 0x38], eax
call fcn.0054d430
jmp 0x52ef14
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0xb0], 2
jne 0x52f2ca
mov edi, dword [esi + 0x154]
mov edx, dword [esi + 0x150]
mov eax, edi
test eax, eax
jl 0x52ef52
jg 0x52ef3d
cmp edx, 0x32
jbe 0x52ef52
mov eax, dword [esi + 0x1dc]
mov ebx, dword [eax + 0x44]
test ebx, ebx
jl 0x52ef73
jg 0x52ef52
cmp dword [eax + 0x40], 0x32
jb 0x52ef73
test edi, edi
jg 0x52ef9d
jl 0x52ef5d
cmp edx, 0x32
ja 0x52ef9d
mov eax, dword [esi + 0x1dc]
mov ebx, dword [eax + 0x44]
cmp ebx, edi
jg 0x52ef9d
jl 0x52ef73
mov edi, dword [eax + 0x40]
cmp edi, edx
jae 0x52ef9d
mov dl, byte [eax + 0x94]
test dl, dl
je 0x52f2ca
mov edx, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
or edx, edi
jne 0x52f2ca
mov dl, byte [eax + 0x95]
test dl, dl
je 0x52f2ca
call fcn.00563030
mov cl, byte [0x6826c4]
mov dword [ebp - 0x18], eax
test cl, cl
jne 0x52efbc
mov ecx, dword [esi + 0xc]
mov dl, byte [ecx + 0x2c0]
test dl, dl
jne 0x52efca
mov cl, byte [esi + 0x7f0]
test cl, cl
je 0x52f059
mov edx, dword [esi + 0xc]
cmp dword [edx + 0xb0], 2
jne 0x52efde
xor edi, edi
cmp eax, edi
je 0x52f05b
jmp 0x52efe0
xor edi, edi
mov ecx, dword [esi + 0x1dc]
mov eax, dword [ecx]
call dword [eax + 0x18]
lea ecx, [esi + 0x48]
call fcn.005070b0
mov dword [esi + 0x80], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x158], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x15c], edi
mov al, byte [0x6826c4]
test al, al
jne 0x52f043
mov ecx, dword [esi + 0xc]
mov al, byte [ecx + 0x2c0]
test al, al
je 0x52f043
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 0x52f0d6
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 0x52f0d6
mov ebx, dword [ebx + 0xbc]
test ebx, ebx
je 0x52f09a
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push edx
call fcn.00586aa0
add esp, 0xc
test eax, eax
je 0x52f0d6
mov edx, dword [esi + 0x14]
mov eax, dword [edx]
test eax, eax
je 0x52f0b8
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 0x52f0d6
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 0x52f2ca
mov eax, dword [esi + 0xf4]
test eax, eax
jne 0x52f26d
mov al, byte [0x6826c4]
test al, al
jne 0x52f1eb
mov eax, dword [esi + 0xc]
mov byte [ebp - 0x12], 0
mov edx, dword [eax + 0xbc]
test edx, edx
je 0x52f15a
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 0x52f15a
mov edi, edx
mov eax, ebx
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x52f14d
test cl, cl
je 0x52f149
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x52f14d
add eax, 2
add edi, 2
test cl, cl
jne 0x52f125
xor eax, eax
jmp 0x52f152
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x52f15a
mov byte [ebp - 0x12], 1
mov edi, dword [esi + 0x154]
mov edx, dword [esi + 0x150]
xor ebx, ebx
cmp edi, ebx
jl 0x52f193
jg 0x52f172
cmp edx, ebx
jbe 0x52f193
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xe8]
mov eax, dword [eax + 0xec]
cmp eax, ebx
jl 0x52f193
jg 0x52f18b
cmp ecx, ebx
jbe 0x52f193
cmp ecx, edx
jne 0x52f19a
cmp eax, edi
jne 0x52f19a
mov al, byte [ebp - 0x12]
test al, al
je 0x52f1eb
mov eax, dword [esi + 0xc]
push 0x681f78
lea ecx, [eax + 0xe4]
call fcn.005a0de6
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 [0x682cac]
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 0x52f26d
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x52f200
mov eax, ecx
jmp 0x52f203
add eax, 0x38
push 0x2e
push eax
call fcn.00584766
mov edi, eax
add esp, 8
test edi, edi
je 0x52f26d
push 0x65e22c
push edi
call fcn.00586dec
add esp, 8
test eax, eax
je 0x52f26d
push 0x65c830
push edi
call fcn.00586dec
add esp, 8
test eax, eax
je 0x52f26d
mov ecx, dword [esi + 0xc]
mov eax, dword [0x68347c]
push 0x50004
mov edx, dword [ecx + 8]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x52f26d
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 0x52f2ca
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x52f282
mov eax, ecx
jmp 0x52f285
add eax, 0x38
push 0x2e
push eax
call fcn.00584766
mov edi, eax
add esp, 8
test edi, edi
je 0x52f2ca
push 0x65e22c
push edi
call fcn.00586dec
add esp, 8
test eax, eax
je 0x52f2ca
push 0x65c830
push edi
call fcn.00586dec
add esp, 8
test eax, eax
je 0x52f2ca
mov ecx, dword [esi + 0xc]
call fcn.005630f0
test eax, eax
jne 0x52f712
mov al, byte [ebp - 0x3c]
test al, al
je 0x52f4f8
mov ecx, dword [esi + 0x15c]
mov eax, dword [esi + 0x158]
test ecx, ecx
jl 0x52f4f8
jg 0x52f2f6
cmp eax, 0x400
jbe 0x52f4f8
mov ecx, esi
call fcn.0054d280
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x4c], eax
push ecx
mov ebx, edx
call fcn.005860ec
mov eax, dword [esi + 0x158]
mov edi, dword [ebp - 0x44]
mov ecx, dword [esi + 0x15c]
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 0x52f4f8
jg 0x52f33d
test eax, eax
jbe 0x52f4f8
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0xa0]
sub eax, edx
mov ecx, dword [ebp - 0x9c]
and ecx, 0xffff
lea edx, [eax + eax*2]
lea eax, [eax + edx*8]
mov edx, dword [ebp - 0x90]
and edx, 0xffff
lea eax, [eax + eax*4]
shl eax, 3
sub eax, ecx
add eax, edx
mov dword [ebp - 0x18], eax
jne 0x52f37f
mov dword [ebp - 0x18], 1
fild qword [ebp - 0x30]
fmul dword [0x5d8d8c]
fidiv dword [ebp - 0x18]
call fcn.00584d08
mov edi, edx
mov ecx, eax
cmp edi, ebx
jl 0x52f4f8
jg 0x52f3a7
cmp ecx, dword [ebp - 0x4c]
jbe 0x52f4f8
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.005870a0
mov ecx, dword [ebp - 0x4c]
push ebx
push ecx
push edx
push eax
call fcn.00586630
mov edi, eax
mov eax, dword [esi + 0x160]
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.00586630
cmp dword [ebp - 0x1c], edx
jg 0x52f405
jl 0x52f3f0
cmp dword [ebp - 0x20], eax
jae 0x52f405
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
jmp 0x52f433
mov ecx, dword [ebp - 0x4c]
push 0
push 9
push ebx
push ecx
call fcn.005870a0
push 0
push 0xa
push edx
push eax
call fcn.00586630
cmp dword [ebp - 0x1c], edx
jg 0x52f433
jl 0x52f42a
cmp dword [ebp - 0x20], eax
jae 0x52f433
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, 0x2ee0
jle 0x52f442
mov edi, 0x2ee0
jmp 0x52f44a
test edi, edi
jle 0x52f4f8
mov eax, dword [esi + 0x7ec]
cmp eax, 0xffffffff
je 0x52f4f1
lea ecx, [esi + 0x1e0]
lea ebx, [esi + 0x5e8]
mov dword [esi + 0x3e4], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [esi + 0x1e4], eax
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov eax, dword [ebx]
cmp eax, 0x80
jae 0x52f4a1
mov edx, dword [esi + 0x7ec]
mov dword [esi + eax*4 + 0x5ec], 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 + 0x3e4]
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 0x52f4f8
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.0052f730
mov edi, eax
test edi, edi
jne 0x52f51a
mov ecx, esi
call fcn.0052fa60
mov ecx, esi
call fcn.0054e5c0
xor ebx, ebx
jmp 0x52eadb
mov eax, dword [esi + 0x38]
test eax, eax
je 0x52f53f
lea ecx, [esi + 0x48]
call fcn.0050c900
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 0x52f6a1
cmp edi, 0xffffffff
je 0x52f6a1
mov ecx, dword [esi + 0x15c]
mov edx, dword [esi + 0x158]
mov eax, dword [0x683500]
push ecx
push edx
lea ecx, [ebp - 0x12c]
push eax
push ecx
call fcn.005851fa
add esp, 0x10
lea edx, [ebp - 0x12c]
mov ecx, esi
push 1
push edx
call fcn.0054d430
mov eax, dword [esi + 0x158]
mov edx, dword [esi + 0x150]
mov ecx, dword [esi + 0x15c]
mov edi, dword [esi + 0x154]
cmp eax, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x2c], ecx
jne 0x52f5b2
mov eax, ecx
cmp eax, edi
je 0x52f618
mov eax, edx
or eax, edi
je 0x52f618
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 0x52f5e5
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x50]
cmp eax, ecx
je 0x52f618
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
add edx, esi
adc edi, ebx
cmp eax, edi
jl 0x52f70f
jg 0x52f602
cmp dword [ebp - 0x20], edx
jbe 0x52f70f
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 + 0x140]
jge 0x52f687
mov eax, ebx
mov edx, dword [esi + 0x1dc]
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 0x52f684
mov eax, dword [edi + 0x70]
mov ecx, dword [eax]
cmp dword [ecx], 0
je 0x52f684
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
or edx, eax
je 0x52f684
lea eax, [edi + 0x2d0]
mov ecx, edi
push eax
call fcn.0050ffa0
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 0x52f61a
mov ecx, esi
call fcn.0054e5c0
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 + 0x15c]
mov ecx, dword [esi + 0x158]
mov edx, dword [0x6834f4]
push eax
push ecx
lea eax, [ebp - 0x12c]
push edx
push eax
call fcn.005851fa
add esp, 0x10
lea ecx, [ebp - 0x12c]
push 1
push ecx
mov ecx, esi
call fcn.0054d430
mov esi, dword [esi + 0xf8]
test esi, esi
je 0x52f6e9
cmp edi, 0x753c
mov eax, esi
je 0x52f712
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