Function at 0x57a550
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60d128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
mov eax, dword [0x6d21c0]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
push 1
push eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], ebx
call fcn.0058a530
mov ecx, esi
call fcn.0058afe0
mov ecx, esi
call fcn.0058b950
mov ecx, esi
call fcn.0058a7e0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x58], 3
push ecx
mov dword [ebp - 0x54], ebx
call fcn.005c8c6c
lea edx, [ebp - 0x44]
push edx
call fcn.005c8c6c
add esp, 8
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
cmp dword [esi + 0x38], ebx
je 0x57a62b
lea ecx, [esi + 0x48]
call fcn.00534cb0
mov ecx, dword [esi + 0x1c8]
mov edx, dword [esi + 0x1cc]
lea eax, [esi + 0x20]
mov dword [esi + 0x30], ebx
push eax
push 0x1471
mov dword [eax], ecx
mov ecx, dword [esi + 0x1d0]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x1d4]
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.0058a3c0
test al, al
mov byte [ebp - 0x38], al
je 0x57a657
lea edx, [ebp - 0x64]
push edx
call fcn.005c8c6c
mov eax, dword [esi + 0x1d0]
mov ecx, dword [esi + 0x1d4]
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x58]
lea eax, [esi + 0x660]
push edx
lea ecx, [esi + 0x45c]
push eax
lea edx, [esi + 0x258]
push ecx
push edx
push ebx
call sub.WS2_32.dll_select
mov edi, eax
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x57a69d
lea ecx, [esi + 0x48]
call fcn.00534cb0
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 + 0x1d0]
mov ecx, dword [esi + 0x1d4]
or eax, ecx
jne 0x57a6e2
lea eax, [ebp - 0x44]
push eax
call fcn.005c8c6c
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x88]
sub ecx, edx
add esp, 4
cmp ecx, 0x12c
jle 0x57a6e2
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
cmp edi, 0xffffffff
je 0x57a73f
cmp edi, ebx
je 0x57a73f
xor edi, edi
cmp edi, dword [esi + 0x1b8]
jge 0x57a746
lea eax, [edi + edi*4]
mov ecx, dword [esi + 0x254]
lea eax, [eax + eax*8]
lea edx, [eax + eax*8]
lea eax, [edi + edx*2]
shl eax, 4
add ecx, eax
cmp dword [ecx + 0x84], ebx
je 0x57a73c
cmp dword [esi + 0x38], ebx
je 0x57a737
lea ecx, [esi + 0x48]
call fcn.00534cb0
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.00578cb0
inc edi
jmp 0x57a6ed
mov ecx, esi
call fcn.004b8800
mov edx, dword [ebp - 0x38]
mov ecx, esi
push edx
push ebx
call fcn.0058a8b0
lea eax, [ebp - 0x7c]
push eax
call fcn.005c8c6c
mov eax, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x44]
sub eax, edi
mov edx, dword [ebp - 0x40]
and edx, 0xffff
add esp, 4
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0x78]
shl ecx, 3
sub ecx, edx
and eax, 0xffff
add ecx, eax
cmp ecx, 0xfa
jl 0x57a816
lea ecx, [ebp - 0x44]
push ecx
call fcn.005c8c6c
add esp, 4
xor ebx, ebx
cmp ebx, dword [esi + 0x1b8]
jge 0x57a816
lea eax, [ebx + ebx*4]
mov ecx, dword [esi + 0x254]
lea eax, [eax + eax*8]
lea edx, [eax + eax*8]
lea eax, [ebx + edx*2]
shl eax, 4
lea edi, [eax + ecx]
mov eax, dword [eax + ecx + 0x84]
test eax, eax
je 0x57a813
mov edx, dword [edi + 0xa0]
mov eax, dword [edx]
cmp dword [eax], 0
je 0x57a813
mov ecx, dword [edi + 0x68]
mov eax, dword [edi + 0x6c]
or ecx, eax
je 0x57a813
lea eax, [edi + 0x3e0]
mov ecx, edi
push eax
call fcn.00539fe0
mov edx, dword [edi + 0xa0]
lea eax, [edi + 0x3e0]
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 0x57a7a1
mov al, byte [ebp - 0x38]
test al, al
je 0x57aa2c
mov ecx, dword [esi + 0x1d4]
mov eax, dword [esi + 0x1d0]
test ecx, ecx
jl 0x57aa2c
jg 0x57a842
cmp eax, 0x400
jbe 0x57aa2c
mov ecx, esi
call fcn.0058a380
mov ebx, edx
lea edx, [ebp - 0x70]
push edx
mov dword [ebp - 0x24], eax
call fcn.005c8c6c
mov eax, dword [esi + 0x1d0]
mov edi, dword [ebp - 0x34]
mov ecx, dword [esi + 0x1d4]
mov edx, dword [ebp - 0x30]
add esp, 4
sub eax, edi
sbb ecx, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
js 0x57aa2c
jg 0x57a886
test eax, eax
jbe 0x57aa2c
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x64]
sub eax, edx
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x6c]
and ecx, 0xffff
lea eax, [eax + eax*4]
and edx, 0xffff
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, ecx
add eax, edx
mov dword [ebp - 0x14], eax
jne 0x57a8bc
mov dword [ebp - 0x14], 1
fild qword [ebp - 0x50]
fmul dword [0x61ef74]
fidiv dword [ebp - 0x14]
call fcn.005c7778
mov edi, edx
mov ecx, eax
cmp edi, ebx
jl 0x57aa2c
jg 0x57a8e4
cmp ecx, dword [ebp - 0x24]
jbe 0x57aa2c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
sub ecx, edx
cdq
sbb edi, ebx
push edx
push eax
push edi
push ecx
call fcn.005c9b80
mov ecx, dword [ebp - 0x24]
push ebx
push ecx
push edx
push eax
call fcn.005c91b0
mov edi, eax
mov eax, dword [esi + 0x1d8]
cdq
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x24]
push 0
push 2
push ebx
push edx
mov dword [ebp - 0x1c], eax
call fcn.005c91b0
cmp dword [ebp - 0x18], edx
jg 0x57a942
jl 0x57a92d
cmp dword [ebp - 0x1c], eax
jae 0x57a942
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
jmp 0x57a970
mov ecx, dword [ebp - 0x24]
push 0
push 9
push ebx
push ecx
call fcn.005c9b80
push 0
push 0xa
push edx
push eax
call fcn.005c91b0
cmp dword [ebp - 0x18], edx
jg 0x57a970
jl 0x57a967
cmp dword [ebp - 0x1c], eax
jae 0x57a970
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, 0x2ee0
jle 0x57a97f
mov edi, 0x2ee0
jmp 0x57a987
test edi, edi
jle 0x57aa2c
mov eax, dword [esi + 0x864]
cmp eax, 0xffffffff
je 0x57aa25
lea ecx, [esi + 0x258]
lea ebx, [esi + 0x660]
mov dword [esi + 0x45c], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [esi + 0x25c], eax
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov eax, dword [ebx]
cmp eax, 0x80
jae 0x57a9de
mov edx, dword [esi + 0x864]
mov dword [esi + eax*4 + 0x664], 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 - 0x2c], edx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
sub edi, edx
lea edx, [ebp - 0x2c]
push edx
push ebx
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [ebp - 0x28], eax
lea eax, [esi + 0x45c]
push eax
push ecx
push 0
call sub.WS2_32.dll_select
jmp 0x57aa2c
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.0057b040
mov edi, eax
test edi, edi
jne 0x57aa47
mov ecx, esi
call fcn.0057ad10
xor ebx, ebx
jmp 0x57a5c8
mov eax, dword [esi + 0x38]
test eax, eax
je 0x57aa6c
lea ecx, [esi + 0x48]
call fcn.00534cb0
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 0x57ac96
cmp edi, 0xffffffff
je 0x57ac96
mov eax, dword [esi + 0x1d4]
mov ecx, dword [esi + 0x1d0]
mov edx, dword [0x6d21c4]
push eax
push ecx
lea eax, [ebp - 0x108]
push edx
push eax
call fcn.005c7c98
add esp, 0x10
lea ecx, [ebp - 0x108]
push 1
push ecx
mov ecx, esi
call fcn.0058a530
mov edi, dword [esi + 0x1cc]
mov edx, dword [esi + 0x1c8]
mov eax, dword [esi + 0x1d0]
mov ecx, dword [esi + 0x1d4]
mov dword [ebp - 0x28], edi
mov edi, edx
cmp eax, edi
jne 0x57aae3
mov ebx, dword [ebp - 0x28]
mov edi, ecx
cmp edi, ebx
je 0x57ac0c
mov ebx, dword [esi + 0x1cc]
mov edi, edx
or edi, ebx
je 0x57ac0c
mov edi, dword [esi + 0x254]
mov dword [ebp - 0x1c], edx
mov edx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], edx
mov edx, dword [esi + 0x874]
mov ebx, edx
imul ebx, dword [edi + 0x31d4]
mov edi, ebx
mov ebx, eax
add edi, ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x24], edi
mov edi, ecx
adc ebx, edi
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x24]
cmp ebx, edi
jne 0x57ab42
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
cmp ebx, edi
je 0x57ac0c
mov edi, dword [0x6cc564]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi + 0x254]
mov ebx, dword [esi + 0x1c8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov edi, dword [ecx + 0x31d4]
mov ecx, dword [esi + 0x1cc]
push ecx
mov ecx, edi
imul ecx, edx
push ebx
xor ebx, ebx
add ecx, eax
mov eax, dword [ebp - 0x28]
adc ebx, eax
mov eax, dword [ebp - 0x1c]
push ebx
push ecx
push edi
push edx
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push edx
push eax
push str.Error_NMSD__ttd_I64d__ttsp_ld__mpln_ld__s1_I64d__fsize_I64d_n
push ecx
call fcn.005dc6eb
mov edx, dword [ebp - 0x14]
add esp, 0x28
mov ecx, esi
push edx
call fcn.0058a680
mov eax, dword [esi + 0x1d4]
mov edi, dword [esi + 0x1cc]
mov ecx, dword [esi + 0x1d0]
mov edx, dword [esi + 0x1c8]
cmp eax, edi
jl 0x57abec
jg 0x57abca
cmp ecx, edx
jbe 0x57abec
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005e38b9
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
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005e38b9
or eax, 0xffffffff
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 + 0x1b8]
jge 0x57ac83
lea eax, [ebx + ebx*4]
mov edx, dword [esi + 0x254]
lea eax, [eax + eax*8]
lea eax, [eax + eax*8]
lea ecx, [ebx + eax*2]
shl ecx, 4
mov eax, dword [ecx + edx + 0x84]
lea edi, [ecx + edx]
test eax, eax
je 0x57ac80
mov eax, dword [edi + 0xa0]
mov ecx, dword [eax]
cmp dword [ecx], 0
je 0x57ac80
mov edx, dword [edi + 0x68]
mov eax, dword [edi + 0x6c]
or edx, eax
je 0x57ac80
lea eax, [edi + 0x3e0]
mov ecx, edi
push eax
call fcn.00539fe0
lea eax, [edi + 0x3e0]
push eax
mov eax, dword [edi + 0xa0]
push 0x13ef
push 0x111
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
inc ebx
jmp 0x57ac0e
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 + 0x1d4]
mov ecx, dword [esi + 0x1d0]
mov edx, dword [0x6d21b8]
push eax
push ecx
lea eax, [ebp - 0x108]
push edx
push eax
call fcn.005c7c98
add esp, 0x10
lea ecx, [ebp - 0x108]
push 1
push ecx
mov ecx, esi
call fcn.0058a530
mov esi, dword [esi + 0x160]
test esi, esi
je 0x57ace2
cmp edi, 0x753c
mov eax, esi
je 0x57abfb
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret