Function at 0x5314c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc410
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 0x5315f7
mov al, byte [esi + 0x7f0]
test al, al
jne 0x5315f7
mov ecx, dword [esi + 0x13c]
mov eax, 1
cmp ecx, eax
jle 0x5315f7
mov ecx, dword [esi + 0xc]
mov dl, byte [ecx + 0x14f]
test dl, dl
je 0x5315f7
mov edx, dword [esi + 0x1dc]
mov dword [edx + 0x337c], eax
mov eax, dword [esi + 0x1dc]
mov dword [eax + 0x3360], ebx
mov dword [eax + 0x3364], ebx
mov ecx, dword [esi + 0x1dc]
mov dword [ecx + 0x3348], ebx
mov dword [ecx + 0x334c], ebx
mov edx, dword [esi + 0x1dc]
mov byte [edx + 0x63fb], 1
mov eax, dword [esi + 0x1dc]
mov edx, dword [eax + 0x3328]
lea ecx, [eax + 0x3328]
add eax, 0x63ec
push eax
call dword [edx + 0x10]
mov eax, dword [esi + 0x3e4]
cmp eax, 0x80
jae 0x5315b9
mov ecx, dword [esi + 0x1dc]
mov edx, dword [ecx + 0x63ec]
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 0x5315e6
mov ecx, dword [esi + 0x1dc]
mov edx, dword [ecx + 0x63ec]
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 [0x688a84]
push 1
push eax
mov ecx, esi
call fcn.00551df0
mov ecx, esi
call fcn.00552870
mov ecx, esi
call fcn.00552f90
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.00552070
lea eax, [ebp - 0xac]
mov dword [ebp - 0x5c], 3
push eax
mov dword [ebp - 0x58], ebx
call fcn.0058acfc
lea ecx, [ebp - 0x74]
push ecx
call fcn.0058acfc
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 0x5316cc
mov eax, ecx
mov ebx, dword [esi + 0x1dc]
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
lea eax, [ecx + eax*4]
lea eax, [ebx + eax*8]
xor ebx, ebx
cmp dword [eax + 0x54], ebx
je 0x5316c9
inc edx
cmp dword [eax + 0x2bc], ebx
jg 0x5316c3
mov ebx, dword [eax + 0x80]
cmp dword [ebx + 0x24], 2
jne 0x5316c7
xor ebx, ebx
cmp dword [eax + 0x331c], ebx
ja 0x5316c3
cmp byte [eax + 0x3320], bl
je 0x5316c9
inc edi
inc ecx
jmp 0x531674
xor ebx, ebx
inc ecx
jmp 0x531674
cmp edi, 1
jne 0x5316dc
cmp edx, edi
jne 0x5316dc
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x5c], edi
cmp dword [esi + 0x38], ebx
je 0x53173f
lea ecx, [esi + 0x48]
call fcn.0050d7f0
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.00551c80
test al, al
mov byte [ebp - 0x3c], al
je 0x53176e
lea edx, [ebp - 0xa0]
push edx
call fcn.0058acfc
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 0x531798
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 0x5317a8
mov edi, 1
mov dword [ebp - 0x5c], 3
mov byte [ebp - 0x11], 1
cmp dword [esi + 0x38], ebx
je 0x5317cb
lea ecx, [esi + 0x48]
call fcn.0050d7f0
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 0x531810
lea eax, [ebp - 0x74]
push eax
call fcn.0058acfc
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0xac]
sub ecx, edx
add esp, 4
cmp ecx, 0x12c
jle 0x531810
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 0x53187e
cmp edi, ebx
je 0x53187e
xor edi, edi
cmp edi, dword [esi + 0x140]
jge 0x531885
mov eax, edi
shl eax, 4
add eax, edi
lea ecx, [eax + eax*2]
lea edx, [edi + ecx*8]
mov ecx, dword [esi + 0x1dc]
lea eax, [edi + edx*4]
lea ecx, [ecx + eax*8]
cmp dword [ecx + 0x54], ebx
je 0x53187b
cmp dword [esi + 0x38], ebx
je 0x531876
lea ecx, [esi + 0x48]
call fcn.0050d7f0
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.0052a1a0
inc edi
jmp 0x53182d
mov ecx, esi
call fcn.00532510
mov edx, dword [ebp - 0x3c]
mov ecx, esi
push edx
push ebx
call fcn.00552140
lea eax, [ebp - 0x80]
push eax
call fcn.0058acfc
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 0x531959
lea ecx, [ebp - 0x74]
push ecx
call fcn.0058acfc
add esp, 4
xor ebx, ebx
cmp ebx, dword [esi + 0x140]
jge 0x531953
mov eax, ebx
shl eax, 4
add eax, ebx
lea edx, [eax + eax*2]
lea eax, [ebx + edx*8]
mov edx, dword [esi + 0x1dc]
lea ecx, [ebx + eax*4]
mov eax, dword [edx + ecx*8 + 0x54]
test eax, eax
lea edi, [edx + ecx*8]
je 0x531950
mov eax, dword [edi + 0x70]
mov ecx, dword [eax]
cmp dword [ecx], 0
je 0x531950
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
or edx, eax
je 0x531950
lea eax, [edi + 0x2d0]
mov ecx, edi
push eax
call fcn.00510e90
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 0x5318e6
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x80]
mov edx, dword [esi + 0x40]
xor ebx, ebx
cmp edx, ebx
jne 0x531b0a
mov edi, dword [esi + 0x15c]
mov edx, dword [esi + 0x158]
cmp dword [ebp - 0x34], edi
jg 0x531b0a
jl 0x531986
cmp dword [ebp - 0x38], edx
jae 0x531b0a
cmp dword [ebp - 0x54], edx
jne 0x531b0a
cmp dword [ebp - 0x50], edi
jne 0x531b0a
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 0x5319bf
and eax, 0xffff
lea eax, [eax + ecx*8]
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
jmp 0x531b10
and eax, 0xffff
lea eax, [eax + ecx*8]
mov ecx, dword [esi + 0xc]
cdq
fld qword [ecx + 0x3e0]
fsqrt
mov ebx, eax
mov edi, edx
fmul qword [0x5faba0]
fadd qword [ecx + 0x3d0]
fcom qword [ecx + 0x3f0]
fnstsw ax
test ah, 1
je 0x5319f5
fstp qword [ebp - 0x64]
jmp 0x531a09
mov edx, dword [ecx + 0x3f0]
mov eax, dword [ecx + 0x3f4]
fstp st(0)
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], eax
fld qword [ecx + 0x3d8]
fsqrt
fmul qword [0x5faba0]
fadd qword [ecx + 0x3c8]
fcom qword [ecx + 0x3e8]
fnstsw ax
test ah, 1
jne 0x531a32
fstp st(0)
fld qword [ecx + 0x3e8]
fld qword [ebp - 0x64]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x531a43
fstp st(0)
fld qword [ebp - 0x64]
fmul qword [0x5fb2f0]
fadd qword [0x5fb2e8]
call fcn.00589918
mov ecx, dword [ebp - 0x28]
sub ebx, ecx
mov ecx, dword [ebp - 0x24]
sbb edi, ecx
cmp edi, edx
jl 0x531b10
jg 0x531a70
cmp ebx, eax
jbe 0x531b10
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00561030
cmp eax, ebx
je 0x531b12
cmp dword [esi + 0x38], ebx
je 0x531aa2
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.0052db10
mov ecx, dword [esi + 0x1dc]
mov eax, dword [ecx]
lea edx, [ecx + 0x30c4]
push edx
call dword [eax + 0x10]
cmp eax, ebx
jne 0x53230b
mov ecx, dword [esi + 0x1dc]
push ebx
call fcn.005247f0
cmp eax, ebx
jne 0x53230b
mov ecx, dword [esi + 0x15c]
mov edx, dword [0x688a84]
mov eax, dword [esi + 0x158]
mov dword [ebp - 0x34], ecx
push 1
push edx
mov ecx, esi
mov dword [ebp - 0x38], eax
call fcn.00551df0
jmp 0x531b12
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
xor ebx, ebx
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0xb0], 2
jne 0x531ec4
mov edi, dword [esi + 0x154]
mov edx, dword [esi + 0x150]
mov eax, edi
cmp eax, ebx
jl 0x531b4e
jg 0x531b3b
cmp edx, 0x32
jbe 0x531b4e
mov eax, dword [esi + 0x1dc]
cmp dword [eax + 0x44], ebx
jl 0x531b71
jg 0x531b4e
cmp dword [eax + 0x40], 0x32
jb 0x531b71
cmp edi, ebx
jg 0x531b9f
jl 0x531b59
cmp edx, 0x32
ja 0x531b9f
mov eax, dword [esi + 0x1dc]
mov ebx, dword [eax + 0x44]
cmp ebx, edi
jg 0x531b9d
jl 0x531b6f
mov edi, dword [eax + 0x40]
cmp edi, edx
jae 0x531b9d
xor ebx, ebx
mov dl, byte [eax + 0x94]
test dl, dl
je 0x531ec4
mov edx, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
or edx, edi
jne 0x531ec4
mov dl, byte [eax + 0x95]
test dl, dl
je 0x531ec4
jmp 0x531b9f
xor ebx, ebx
call fcn.00567bf0
mov cl, byte [0x687c44]
mov dword [ebp - 0x18], eax
test cl, cl
jne 0x531bbe
mov ecx, dword [esi + 0xc]
mov dl, byte [ecx + 0x2e0]
test dl, dl
jne 0x531bcc
mov cl, byte [esi + 0x7f0]
test cl, cl
je 0x531c55
mov edx, dword [esi + 0xc]
cmp dword [edx + 0xb0], 2
jne 0x531bdc
cmp eax, ebx
je 0x531c55
mov ecx, dword [esi + 0x1dc]
mov eax, dword [ecx]
call dword [eax + 0x18]
lea ecx, [esi + 0x48]
call fcn.00507f40
mov dword [esi + 0x80], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x158], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x15c], ebx
mov al, byte [0x687c44]
test al, al
jne 0x531c3f
mov ecx, dword [esi + 0xc]
mov al, byte [ecx + 0x2e0]
test al, al
je 0x531c3f
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
cmp dword [esi + 0x70], ebx
jle 0x531cd0
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 0x531cd0
mov ebx, dword [ebx + 0xbc]
test ebx, ebx
je 0x531c94
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push edx
call fcn.0058b6b0
add esp, 0xc
test eax, eax
je 0x531cd0
mov edx, dword [esi + 0x14]
mov eax, dword [edx]
test eax, eax
je 0x531cb2
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 0x531cd0
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 0x531ec4
mov eax, dword [esi + 0xf4]
test eax, eax
jne 0x531e67
mov al, byte [0x687c44]
test al, al
jne 0x531de5
mov eax, dword [esi + 0xc]
mov byte [ebp - 0x12], 0
mov edx, dword [eax + 0xbc]
test edx, edx
je 0x531d54
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 0x531d54
mov edi, edx
mov eax, ebx
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x531d47
test cl, cl
je 0x531d43
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x531d47
add eax, 2
add edi, 2
test cl, cl
jne 0x531d1f
xor eax, eax
jmp 0x531d4c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x531d54
mov byte [ebp - 0x12], 1
mov edi, dword [esi + 0x154]
mov edx, dword [esi + 0x150]
xor ebx, ebx
cmp edi, ebx
jl 0x531d8d
jg 0x531d6c
cmp edx, ebx
jbe 0x531d8d
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xe8]
mov eax, dword [eax + 0xec]
cmp eax, ebx
jl 0x531d8d
jg 0x531d85
cmp ecx, ebx
jbe 0x531d8d
cmp ecx, edx
jne 0x531d94
cmp eax, edi
jne 0x531d94
mov al, byte [ebp - 0x12]
test al, al
je 0x531de5
mov eax, dword [esi + 0xc]
push 0x6874e8
lea ecx, [eax + 0xe4]
call fcn.005a59d6
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 [0x688234]
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 0x531e67
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x531dfa
mov eax, ecx
jmp 0x531dfd
add eax, 0x38
push 0x2e
push eax
call fcn.00589382
mov edi, eax
add esp, 8
test edi, edi
je 0x531e67
push 0x663108
push edi
call fcn.0058b9fc
add esp, 8
test eax, eax
je 0x531e67
push 0x6618f0
push edi
call fcn.0058b9fc
add esp, 8
test eax, eax
je 0x531e67
mov ecx, dword [esi + 0xc]
mov eax, dword [0x688a04]
push 0x50004
mov edx, dword [ecx + 8]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x531e67
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 0x531ec4
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x531e7c
mov eax, ecx
jmp 0x531e7f
add eax, 0x38
push 0x2e
push eax
call fcn.00589382
mov edi, eax
add esp, 8
test edi, edi
je 0x531ec4
push 0x663108
push edi
call fcn.0058b9fc
add esp, 8
test eax, eax
je 0x531ec4
push 0x6618f0
push edi
call fcn.0058b9fc
add esp, 8
test eax, eax
je 0x531ec4
mov ecx, dword [esi + 0xc]
call fcn.00567cd0
test eax, eax
jne 0x53230b
mov al, byte [ebp - 0x3c]
test al, al
je 0x5320f2
mov ecx, dword [esi + 0x15c]
mov eax, dword [esi + 0x158]
test ecx, ecx
jl 0x5320f2
jg 0x531ef0
cmp eax, 0x400
jbe 0x5320f2
mov ecx, esi
call fcn.00551c40
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x4c], eax
push ecx
mov ebx, edx
call fcn.0058acfc
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 0x5320f2
jg 0x531f37
test eax, eax
jbe 0x5320f2
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 0x531f79
mov dword [ebp - 0x18], 1
fild qword [ebp - 0x30]
fmul dword [0x5ddd9c]
fidiv dword [ebp - 0x18]
call fcn.00589918
mov edi, edx
mov ecx, eax
cmp edi, ebx
jl 0x5320f2
jg 0x531fa1
cmp ecx, dword [ebp - 0x4c]
jbe 0x5320f2
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.0058bcb0
mov ecx, dword [ebp - 0x4c]
push ebx
push ecx
push edx
push eax
call fcn.0058b240
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.0058b240
cmp dword [ebp - 0x1c], edx
jg 0x531fff
jl 0x531fea
cmp dword [ebp - 0x20], eax
jae 0x531fff
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
jmp 0x53202d
mov ecx, dword [ebp - 0x4c]
push 0
push 9
push ebx
push ecx
call fcn.0058bcb0
push 0
push 0xa
push edx
push eax
call fcn.0058b240
cmp dword [ebp - 0x1c], edx
jg 0x53202d
jl 0x532024
cmp dword [ebp - 0x20], eax
jae 0x53202d
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, 0x2ee0
jle 0x53203c
mov edi, 0x2ee0
jmp 0x532044
test edi, edi
jle 0x5320f2
mov eax, dword [esi + 0x7ec]
cmp eax, 0xffffffff
je 0x5320eb
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 0x53209b
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 0x5320f2
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00532320
mov edi, eax
test edi, edi
jne 0x532114
mov ecx, esi
call fcn.00532650
mov ecx, esi
call fcn.00552fc0
xor ebx, ebx
jmp 0x5316dc
mov eax, dword [esi + 0x38]
test eax, eax
je 0x532139
lea ecx, [esi + 0x48]
call fcn.0050d7f0
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 0x53229b
cmp edi, 0xffffffff
je 0x53229b
mov ecx, dword [esi + 0x15c]
mov edx, dword [esi + 0x158]
mov eax, dword [0x688a88]
push ecx
push edx
lea ecx, [ebp - 0x12c]
push eax
push ecx
call fcn.00589e0a
add esp, 0x10
lea edx, [ebp - 0x12c]
mov ecx, esi
push 1
push edx
call fcn.00551df0
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 0x5321ac
mov eax, ecx
cmp eax, edi
je 0x532212
mov eax, edx
or eax, edi
je 0x532212
mov ebx, dword [esi + 0xc]
mov eax, edx
mov ecx, edi
mov ebx, dword [ebx + 0x2e8]
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 0x5321df
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x50]
cmp eax, ecx
je 0x532212
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
add edx, esi
adc edi, ebx
cmp eax, edi
jl 0x532308
jg 0x5321fc
cmp dword [ebp - 0x20], edx
jbe 0x532308
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 0x532281
mov eax, ebx
shl eax, 4
add eax, ebx
lea eax, [eax + eax*2]
lea ecx, [ebx + eax*8]
mov eax, dword [esi + 0x1dc]
lea edx, [ebx + ecx*4]
lea edi, [eax + edx*8]
mov eax, dword [eax + edx*8 + 0x54]
test eax, eax
je 0x53227e
mov ecx, dword [edi + 0x70]
mov edx, dword [ecx]
cmp dword [edx], 0
je 0x53227e
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x3c]
or eax, ecx
je 0x53227e
lea eax, [edi + 0x2d0]
mov ecx, edi
push eax
call fcn.00510e90
mov ecx, dword [edi + 0x70]
lea eax, [edi + 0x2d0]
push eax
push 0x13ef
mov edx, dword [ecx]
push 0x111
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
inc ebx
jmp 0x532214
mov ecx, esi
call fcn.00552fc0
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 ecx, dword [esi + 0x15c]
mov edx, dword [esi + 0x158]
mov eax, dword [0x688a7c]
push ecx
push edx
lea ecx, [ebp - 0x12c]
push eax
push ecx
call fcn.00589e0a
add esp, 0x10
lea edx, [ebp - 0x12c]
mov ecx, esi
push 1
push edx
call fcn.00551df0
mov esi, dword [esi + 0xf8]
test esi, esi
je 0x5322e2
cmp edi, 0x753c
mov eax, esi
je 0x53230b
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