Function at 0x589050
Capabilities:
Get number of processors
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60dc80
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
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x24], 5
jne 0x5890b5
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 0xc8
jmp 0x5890bf
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], ebx
lea edx, [ebp - 0x88]
push edx
call fcn.005c8c6c
lea eax, [ebp - 0x44]
push eax
call fcn.005c8c6c
add esp, 8
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
cmp dword [esi + 0x38], ebx
je 0x589140
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 - 0x28], al
je 0x58916c
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 - 0x24], eax
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x38]
lea eax, [esi + 0x65c]
push edx
lea ecx, [esi + 0x458]
push eax
lea edx, [esi + 0x254]
push ecx
push edx
push ebx
call sub.WS2_32.dll_select
mov edi, eax
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x5891b2
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 0x5891f7
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 0x5891f7
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 0x589261
cmp edi, ebx
je 0x589261
mov dword [esi + 0x868], ebx
xor edi, edi
cmp edi, dword [esi + 0x1b8]
jge 0x58926e
mov eax, edi
shl eax, 5
add eax, edi
lea eax, [eax + eax*2]
shl eax, 3
sub eax, edi
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x250]
lea ecx, [eax + edx*8]
mov eax, dword [eax + edx*8 + 0x84]
cmp eax, ebx
je 0x58925e
cmp dword [esi + 0x38], ebx
je 0x589259
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.00580cd0
inc edi
jmp 0x589208
mov ecx, esi
call fcn.005898c0
inc dword [esi + 0x868]
mov ecx, dword [ebp - 0x28]
push ecx
push ebx
mov ecx, esi
call fcn.0058a8b0
lea edx, [ebp - 0x7c]
push edx
call fcn.005c8c6c
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x44]
sub eax, ecx
add esp, 4
lea ecx, [eax + eax*2]
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 0x78]
and ecx, 0xffff
lea edx, [eax + eax*4]
mov eax, dword [ebp - 0x40]
shl edx, 3
and eax, 0xffff
sub edx, eax
add edx, ecx
cmp edx, 0xfa
jl 0x589341
lea edx, [ebp - 0x44]
push edx
call fcn.005c8c6c
add esp, 4
xor ebx, ebx
cmp ebx, dword [esi + 0x1b8]
jge 0x589341
mov eax, ebx
mov ecx, dword [esi + 0x250]
shl eax, 5
add eax, ebx
lea eax, [eax + eax*2]
shl eax, 3
sub eax, ebx
lea eax, [eax + eax*2]
lea edi, [ecx + eax*8]
mov eax, dword [ecx + eax*8 + 0x84]
test eax, eax
je 0x58933e
mov edx, dword [edi + 0xa0]
mov eax, dword [edx]
cmp dword [eax], 0
je 0x58933e
mov ecx, dword [edi + 0x68]
mov eax, dword [edi + 0x6c]
or ecx, eax
je 0x58933e
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 0x5892c9
mov al, byte [0x6d125c]
test al, al
jne 0x5893a2
mov eax, dword [esi + 0xc]
mov cl, byte [eax + 0x309]
test cl, cl
je 0x5893a2
fld qword [eax + 0x348]
fcomp qword [0x61b7c8]
fnstsw ax
test ah, 0x41
je 0x589379
mov edx, dword [esi + 0x250]
cmp dword [edx + 0xd0], 0x64
jbe 0x5893a2
mov ecx, dword [esi + 0x250]
mov eax, dword [ecx]
call dword [eax + 0x1c]
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 al, byte [ebp - 0x28]
test al, al
je 0x5895b8
mov ecx, dword [esi + 0x1d4]
mov eax, dword [esi + 0x1d0]
test ecx, ecx
jl 0x5895b8
jg 0x5893ce
cmp eax, 0x400
jbe 0x5895b8
mov ecx, esi
call fcn.0058a380
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x30], eax
push ecx
mov ebx, edx
call fcn.005c8c6c
mov eax, dword [esi + 0x1d0]
mov edi, dword [ebp - 0x24]
mov ecx, dword [esi + 0x1d4]
mov edx, dword [ebp - 0x20]
add esp, 4
sub eax, edi
sbb ecx, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
js 0x5895b8
jg 0x589412
test eax, eax
jbe 0x5895b8
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x64]
sub eax, edx
mov ecx, dword [ebp - 0x60]
and ecx, 0xffff
lea edx, [eax + eax*2]
lea eax, [eax + edx*8]
mov edx, dword [ebp - 0x6c]
and edx, 0xffff
lea eax, [eax + eax*4]
shl eax, 3
sub eax, ecx
add eax, edx
mov dword [ebp - 0x1c], eax
jne 0x589448
mov dword [ebp - 0x1c], 1
fild qword [ebp - 0x50]
fmul dword [0x61ef74]
fidiv dword [ebp - 0x1c]
call fcn.005c7778
mov edi, edx
mov ecx, eax
cmp edi, ebx
jl 0x5895b8
jg 0x589470
cmp ecx, dword [ebp - 0x30]
jbe 0x5895b8
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
sub ecx, edx
cdq
sbb edi, ebx
push edx
push eax
push edi
push ecx
call fcn.005c9b80
mov ecx, dword [ebp - 0x30]
push ebx
push ecx
push edx
push eax
call fcn.005c91b0
mov edi, eax
mov eax, dword [esi + 0x1d8]
cdq
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x30]
push 0
push 2
push ebx
push edx
mov dword [ebp - 0x18], eax
call fcn.005c91b0
cmp dword [ebp - 0x14], edx
jg 0x5894ce
jl 0x5894b9
cmp dword [ebp - 0x18], eax
jae 0x5894ce
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
jmp 0x5894fc
mov ecx, dword [ebp - 0x30]
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 - 0x14], edx
jg 0x5894fc
jl 0x5894f3
cmp dword [ebp - 0x18], eax
jae 0x5894fc
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, 0x2ee0
jle 0x58950b
mov edi, 0x2ee0
jmp 0x589513
test edi, edi
jle 0x5895b8
mov eax, dword [esi + 0x860]
cmp eax, 0xffffffff
je 0x5895b1
lea ecx, [esi + 0x254]
lea ebx, [esi + 0x65c]
mov dword [esi + 0x458], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [esi + 0x258], eax
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov eax, dword [ebx]
cmp eax, 0x80
jae 0x58956a
mov edx, dword [esi + 0x860]
mov dword [esi + eax*4 + 0x660], 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 - 0x58], 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 - 0x58]
push eax
lea eax, [esi + 0x458]
lea edx, [edi + edi*4]
push ebx
push eax
push ecx
shl edx, 3
push 0
mov dword [ebp - 0x54], edx
call sub.WS2_32.dll_select
jmp 0x5895b8
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00589950
mov edi, eax
test edi, edi
je 0x5895f6
push str.Flagexit_n
mov ecx, esi
call fcn.0058a680
mov eax, dword [esi + 0x38]
test eax, eax
je 0x589604
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 ecx, esi
call fcn.00589be0
xor ebx, ebx
jmp 0x5890dd
cmp edi, 0x753c
je 0x589732
cmp edi, 0xffffffff
je 0x589732
mov ecx, dword [esi + 0x1d4]
mov edx, dword [esi + 0x1d0]
mov eax, dword [0x6d21c4]
push ecx
push edx
lea ecx, [ebp - 0x108]
push eax
push ecx
call fcn.005c7c98
add esp, 0x10
lea edx, [ebp - 0x108]
mov ecx, esi
push 1
push edx
call fcn.0058a530
mov edx, dword [esi + 0x1d0]
mov eax, dword [esi + 0x1d4]
mov ecx, dword [esi + 0x1c8]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x1cc]
cmp edx, ecx
mov dword [ebp - 0x18], edx
jne 0x589675
mov edx, dword [ebp - 0x14]
cmp edx, eax
je 0x5896a5
mov edx, ecx
or edx, eax
je 0x5896a5
cmp dword [ebp - 0x14], eax
jl 0x5897a0
jg 0x58968f
cmp dword [ebp - 0x18], ecx
jbe 0x5897a0
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 + 0x1b8]
jge 0x58971f
mov eax, ebx
mov edx, dword [esi + 0x250]
shl eax, 5
add eax, ebx
lea eax, [eax + eax*2]
shl eax, 3
sub eax, ebx
lea ecx, [eax + eax*2]
mov eax, dword [edx + ecx*8 + 0x84]
test eax, eax
lea edi, [edx + ecx*8]
je 0x58971c
mov eax, dword [edi + 0xa0]
mov ecx, dword [eax]
cmp dword [ecx], 0
je 0x58971c
mov edx, dword [edi + 0x68]
mov eax, dword [edi + 0x6c]
or edx, eax
je 0x58971c
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 0x5896a7
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 0x58977a
cmp edi, 0x753c
mov eax, esi
je 0x5897a3
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