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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae210
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
mov eax, dword [0x664554]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
push 1
push eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], ebx
call fcn.005376c0
mov ecx, esi
call fcn.005380f0
mov ecx, esi
call fcn.00538810
mov ecx, esi
call fcn.00537910
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x58], 3
push ecx
mov dword [ebp - 0x54], ebx
call fcn.0056dcfc
lea edx, [ebp - 0x3c]
push edx
call fcn.0056dcfc
add esp, 8
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
cmp dword [esi + 0x38], ebx
je 0x5363fb
lea ecx, [esi + 0x48]
call fcn.004f73c0
mov ecx, dword [esi + 0x140]
mov edx, dword [esi + 0x144]
lea eax, [esi + 0x20]
mov dword [esi + 0x30], ebx
push eax
push 0x1389
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.005375d0
test al, al
mov byte [ebp - 0x30], al
je 0x536427
lea edx, [ebp - 0x64]
push edx
call fcn.0056dcfc
mov eax, dword [esi + 0x148]
mov ecx, dword [esi + 0x14c]
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x58]
lea eax, [esi + 0x5d4]
push edx
lea ecx, [esi + 0x3d0]
push eax
lea edx, [esi + 0x1cc]
push ecx
push edx
push ebx
call sub.WSOCK32.dll_select
mov edi, eax
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x53646d
lea ecx, [esi + 0x48]
call fcn.004f73c0
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 0x5364b2
lea eax, [ebp - 0x3c]
push eax
call fcn.0056dcfc
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x88]
sub ecx, edx
add esp, 4
cmp ecx, 0x12c
jle 0x5364b2
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 0x536516
cmp edi, ebx
je 0x536516
mov dword [esi + 0x7e0], ebx
xor edi, edi
cmp edi, dword [esi + 0x130]
jge 0x536523
mov eax, edi
shl eax, 6
sub eax, edi
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x1c8]
shl edx, 2
sub edx, edi
lea ecx, [eax + edx*8]
mov eax, dword [eax + edx*8 + 0x54]
cmp eax, ebx
je 0x536513
cmp dword [esi + 0x38], ebx
je 0x53650e
lea ecx, [esi + 0x48]
call fcn.004f73c0
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.0052fa00
inc edi
jmp 0x5364c3
mov ecx, esi
call fcn.00536b40
inc dword [esi + 0x7e0]
mov ecx, dword [ebp - 0x30]
push ecx
push ebx
mov ecx, esi
call fcn.005379e0
lea edx, [ebp - 0x7c]
push edx
call fcn.0056dcfc
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x3c]
sub eax, ecx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x78]
and ecx, 0xffff
lea eax, [eax + eax*4]
and edx, 0xffff
add esp, 4
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, ecx
add eax, edx
cmp eax, 0xfa
jl 0x5365e6
lea eax, [ebp - 0x3c]
push eax
call fcn.0056dcfc
add esp, 4
xor ebx, ebx
cmp ebx, dword [esi + 0x130]
jge 0x5365e6
mov eax, ebx
mov edx, dword [esi + 0x1c8]
shl eax, 6
sub eax, ebx
lea ecx, [eax + eax*8]
shl ecx, 2
sub ecx, ebx
mov eax, dword [edx + ecx*8 + 0x54]
lea edi, [edx + ecx*8]
test eax, eax
je 0x5365e3
mov eax, dword [edi + 0x70]
mov ecx, dword [eax]
cmp dword [ecx], 0
je 0x5365e3
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
or edx, eax
je 0x5365e3
lea eax, [edi + 0x2d0]
mov ecx, edi
push eax
call fcn.004fa9e0
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 0x53657a
mov al, byte [0x663774]
test al, al
jne 0x536647
mov eax, dword [esi + 0xc]
mov cl, byte [eax + 0x2c0]
test cl, cl
je 0x536647
fld qword [eax + 0x2e0]
fcomp qword [0x5bb340]
fnstsw ax
test ah, 0x41
je 0x53661e
mov eax, dword [esi + 0x1c8]
cmp dword [eax + 0x9c], 0x64
jbe 0x536647
mov ecx, dword [esi + 0x1c8]
mov edx, dword [ecx]
call dword [edx + 0x18]
lea ecx, [esi + 0x48]
call fcn.004f73c0
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 - 0x30]
test al, al
je 0x53685f
mov ecx, dword [esi + 0x14c]
mov eax, dword [esi + 0x148]
test ecx, ecx
jl 0x53685f
jg 0x536673
cmp eax, 0x400
jbe 0x53685f
mov eax, dword [0x663310]
mov ebx, dword [0x663314]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x2c], eax
push ecx
call fcn.0056dcfc
mov eax, dword [esi + 0x148]
mov edi, dword [ebp - 0x24]
mov ecx, dword [esi + 0x14c]
mov edx, dword [ebp - 0x20]
add esp, 4
sub eax, edi
sbb ecx, edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
js 0x53685f
jg 0x5366b9
test eax, eax
jbe 0x53685f
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x64]
sub eax, edx
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x6c]
and edx, 0xffff
lea eax, [eax + eax*4]
and ecx, 0xffff
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, edx
add eax, ecx
mov dword [ebp - 0x1c], eax
jne 0x5366ef
mov dword [ebp - 0x1c], 1
fild qword [ebp - 0x48]
fmul dword [0x5bdd40]
fidiv dword [ebp - 0x1c]
call fcn.0056cb34
mov edi, edx
mov ecx, eax
cmp edi, ebx
jl 0x53685f
jg 0x536717
cmp ecx, dword [ebp - 0x2c]
jbe 0x53685f
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
sub ecx, edx
cdq
sbb edi, ebx
push edx
push eax
push edi
push ecx
call fcn.0056ee00
mov ecx, dword [ebp - 0x2c]
push ebx
push ecx
push edx
push eax
call fcn.0056e3a0
mov edi, eax
mov eax, dword [esi + 0x150]
cdq
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x2c]
push 0
push 2
push ebx
push edx
mov dword [ebp - 0x18], eax
call fcn.0056e3a0
cmp dword [ebp - 0x14], edx
jg 0x536775
jl 0x536760
cmp dword [ebp - 0x18], eax
jae 0x536775
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
jmp 0x5367a3
mov ecx, dword [ebp - 0x2c]
push 0
push 9
push ebx
push ecx
call fcn.0056ee00
push 0
push 0xa
push edx
push eax
call fcn.0056e3a0
cmp dword [ebp - 0x14], edx
jg 0x5367a3
jl 0x53679a
cmp dword [ebp - 0x18], eax
jae 0x5367a3
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, 0x2ee0
jle 0x5367b2
mov edi, 0x2ee0
jmp 0x5367ba
test edi, edi
jle 0x53685f
mov eax, dword [esi + 0x7d8]
cmp eax, 0xffffffff
je 0x536858
lea ecx, [esi + 0x1cc]
lea ebx, [esi + 0x5d4]
mov dword [esi + 0x3d0], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [esi + 0x1d0], eax
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov eax, dword [ebx]
cmp eax, 0x80
jae 0x536811
mov edx, dword [esi + 0x7d8]
mov dword [esi + eax*4 + 0x5d8], 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 - 0x50], 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 - 0x50]
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 - 0x4c], eax
lea eax, [esi + 0x3d0]
push eax
push ecx
push 0
call sub.WSOCK32.dll_select
jmp 0x53685f
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00536bd0
mov edi, eax
test edi, edi
je 0x53689d
push str.Flagexit_n
mov ecx, esi
call fcn.004f8310
mov eax, dword [esi + 0x38]
test eax, eax
je 0x5368ab
lea ecx, [esi + 0x48]
call fcn.004f73c0
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.00536e40
xor ebx, ebx
jmp 0x536398
cmp edi, 0x753c
je 0x5369ce
cmp edi, 0xffffffff
je 0x5369ce
mov eax, dword [esi + 0x14c]
mov ecx, dword [esi + 0x148]
mov edx, dword [0x664558]
push eax
push ecx
lea eax, [ebp - 0x108]
push edx
push eax
call fcn.0056d05a
add esp, 0x10
lea ecx, [ebp - 0x108]
push 1
push ecx
mov ecx, esi
call fcn.005376c0
mov edx, dword [esi + 0x148]
mov eax, dword [esi + 0x14c]
mov ecx, dword [esi + 0x140]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x144]
cmp edx, ecx
mov dword [ebp - 0x18], edx
jne 0x53691d
mov edx, dword [ebp - 0x14]
cmp edx, eax
je 0x53694d
mov edx, ecx
or edx, eax
je 0x53694d
cmp dword [ebp - 0x14], eax
jl 0x536a3c
jg 0x536937
cmp dword [ebp - 0x18], ecx
jbe 0x536a3c
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 0x5369bb
mov eax, ebx
mov edx, dword [esi + 0x1c8]
shl eax, 6
sub eax, ebx
lea ecx, [eax + eax*8]
shl ecx, 2
sub ecx, ebx
mov eax, dword [edx + ecx*8 + 0x54]
lea edi, [edx + ecx*8]
test eax, eax
je 0x5369b8
mov eax, dword [edi + 0x70]
mov ecx, dword [eax]
cmp dword [ecx], 0
je 0x5369b8
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
or edx, eax
je 0x5369b8
lea eax, [edi + 0x2d0]
mov ecx, edi
push eax
call fcn.004fa9e0
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 0x53694f
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 [0x66454c]
push eax
push ecx
lea eax, [ebp - 0x108]
push edx
push eax
call fcn.0056d05a
add esp, 0x10
lea ecx, [ebp - 0x108]
push 1
push ecx
mov ecx, esi
call fcn.005376c0
mov esi, dword [esi + 0xf8]
test esi, esi
je 0x536a16
cmp edi, 0x753c
mov eax, esi
je 0x536a3f
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