Function at 0x528960
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc030
mov eax, dword fs:[0]
push eax
mov eax, 0x1198
call fcn.00559fa0
mov eax, dword [0x62c7a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0x110]
lea eax, [ebp - 0x10ab]
push 0x88
xorps xmm0, xmm0
mov byte [ebp - 0x10cc], 0xc
push 0
inc edi
mov dword [ebp - 0x1023], 0
push eax
mov dword [esi + 0x110], edi
movups xmmword [ebp - 0x10cb], xmm0
movups xmmword [ebp - 0x10bb], xmm0
call fcn.0055c100
add esp, 0xc
cmp dword [esi + 0x10c], 0
jne 0x528597
cmp edi, 0x3e8
jle 0x528597
push 0x98
call fcn.005596ac
add esp, 4
mov dword [ebp - 0x11a4], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x52845a
mov ecx, eax
call fcn.0043ee70
mov ecx, eax
jmp 0x52845c
xor ecx, ecx
xorps xmm0, xmm0
mov dword [esi + 0x108], ecx
mov al, byte [0x5e7e94]
movups xmmword [ebp - 0xfc8], xmm0
mov dword [ebp - 0xfb8], 9
movq xmm0, qword [str.127.0.0.1]
mov dword [ebp - 0xfb4], 0xf
movq qword [ebp - 0xfc8], xmm0
mov byte [ebp - 0xfc0], al
mov byte [ebp - 0xfbf], 0
push 0xe5e
lea eax, [ebp - 0xfc8]
mov dword [ebp - 4], 1
push eax
call fcn.0043fcb0
mov ecx, dword [ebp - 0xfb4]
mov byte [ebp - 0x117d], al
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x528507
mov edx, dword [ebp - 0xfc8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5284f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x528945
push ecx
push edx
call fcn.005596dc
mov al, byte [ebp - 0x117d]
add esp, 8
mov dword [ebp - 0xfb8], 0
mov dword [ebp - 0xfb4], 0xf
mov byte [ebp - 0xfc8], 0
test al, al
je 0x528597
mov ecx, esi
mov dword [esi + 0x10c], 1
mov dword [esi + 0x110], 0
call fcn.0044c8d0
push eax
lea eax, [ebp - 0x10cb]
push str.robot_d
push eax
call fcn.0043d380
lea eax, [ebp - 0x10ab]
push str.robot
push eax
call fcn.0043d380
add esp, 0x14
mov dword [ebp - 0x101f], 0x402f5c29
call fcn.0044ced0
mov ecx, dword [esi + 0x108]
lea edx, [ebp - 0x10cc]
push 0
push 0
mov dword [ebp - 0x1023], eax
mov eax, dword [ecx]
push edx
push 0xb1
call dword [eax + 4]
push 0x88
xorps xmm0, xmm0
mov byte [ebp - 0x1018], 9
lea eax, [ebp - 0x115b]
mov byte [ebp - 0x1184], 0xf
push 0
push eax
mov byte [ebp - 0x117c], 0xb
mov dword [ebp - 0x10d3], 0
movups xmmword [ebp - 0x117b], xmm0
movups xmmword [ebp - 0x116b], xmm0
call fcn.0055c100
xor edi, edi
mov byte [ebp - 0x1190], 8
add esp, 0xc
mov dword [ebp - 0x119c], edi
mov dword [ebp - 0x1198], edi
mov dword [ebp - 0x1194], edi
mov ecx, dword [esi + 0x108]
mov dword [ebp - 4], 2
mov dword [ebp - 0x11a0], edi
test ecx, ecx
je 0x528624
mov eax, dword [ecx]
lea edx, [ebp - 0x1188]
push edi
push edi
push edx
push edi
call dword [eax + 8]
mov edi, dword [ebp - 0x119c]
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x5288e7
mov edi, 0xc8
nop word [eax + eax]
mov eax, dword [ebp - 0x1188]
test eax, eax
jle 0x5288e1
cmp eax, 0xfa0
jle 0x52865f
mov dword [ebp - 0x1188], 0xfa0
mov eax, dword [ecx]
lea edx, [ebp - 0x119c]
push edx
lea edx, [ebp - 0x11a0]
push edx
lea edx, [ebp - 0x1188]
push edx
lea edx, [ebp - 0xfb0]
push edx
call dword [eax + 8]
movsx eax, byte [ebp - 0xfb0]
add eax, 0xfffffffb
cmp eax, 0x2f
ja case.0x52869a.6
movzx eax, byte [eax + 0x528960]
jmp dword [eax*4 + 0x528950]
mov ecx, dword [ebp - 0xfaf]
cmp ecx, 1
jl 0x5286b1
cmp ecx, 3
jle 0x5286b9
lea eax, [ecx - 5]
cmp eax, 1
ja 0x5286f1
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x5286c9
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x108], 0
mov dword [esi + 0x10c], 0
call fcn.00568dab
cdq
idiv edi
mov ecx, dword [ebp - 0xfaf]
mov dword [esi + 0x110], edx
cmp ecx, 4
jne case.0x52869a.6
mov ecx, esi
call fcn.0044c8d0
push eax
lea eax, [ebp - 0x117b]
push str.robot_d
push eax
call fcn.0043d380
lea eax, [ebp - 0x115b]
push str.robot
push eax
call fcn.0043d380
add esp, 0x14
call fcn.0044ced0
mov ecx, dword [esi + 0x108]
lea edx, [ebp - 0x117c]
push 0
push 0
mov dword [ebp - 0x10d3], eax
mov eax, dword [ecx]
push edx
push 0xad
call dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x1017], 0
call fcn.0044c8d0
push eax
lea eax, [ebp - 0xffc]
push str.robot_d
push eax
call fcn.0043d380
mov ecx, dword [esi + 0x108]
lea edx, [ebp - 0x1018]
add esp, 0xc
mov dword [ebp - 0x1005], 0x32323232
mov word [ebp - 0x1007], 0x3232
mov dword [ebp - 0x1000], 0x3232
mov byte [ebp - 0x1001], 0x32
push 0
push 0
mov dword [ebp - 0x100f], 0
mov dword [ebp - 0x1013], 0
mov dword [ebp - 0x100b], 0
mov word [ebp - 0xfdb], 0
mov byte [ebp - 0xfdc], 0
mov eax, dword [ecx]
push edx
push 0x4d
call dword [eax + 4]
mov dword [esi + 0x10c], 3
mov dword [esi + 0x110], 0
jmp case.0x52869a.6
mov eax, dword [ebp - 0xfaf]
lea edx, [ebp - 0x1184]
push 0
push 0
push edx
mov dword [esi + 0x114], eax
mov byte [ebp - 0x1183], 0
push 2
jmp 0x5288ac
cmp dword [esi + 0x10c], 2
je 0x52883c
mov dword [esi + 0x10c], 2
call fcn.00568dab
cdq
idiv edi
mov dword [esi + 0x110], edx
cmp dword [esi + 0x110], 0x7d0
jle 0x52887c
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x528858
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x108], 0
mov dword [esi + 0x10c], 0
call fcn.00568dab
cdq
idiv edi
mov dword [esi + 0x110], edx
jmp case.0x52869a.6
mov eax, dword [esi + 0x114]
mov dword [ebp - 0x118f], eax
call fcn.00568dab
and eax, reloc.WS2_32.dll_closesocket
jns 0x528899
dec eax
or eax, 0xfffffffc
inc eax
push 0
push 0
lea edx, [ebp - 0x1190]
mov byte [ebp - 0x118b], al
push edx
push 6
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x5288d3
mov eax, dword [ecx]
lea edx, [ebp - 0x1188]
push 0
push 0
push edx
push 0
call dword [eax + 8]
mov ecx, dword [esi + 0x108]
test ecx, ecx
jne 0x528640
mov edi, dword [ebp - 0x119c]
test edi, edi
je 0x52892a
mov ecx, dword [ebp - 0x1194]
mov eax, 0x66666667
sub ecx, edi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
mov eax, edi
cmp ecx, 0x1000
jb 0x528920
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52894a
push ecx
push edi
call fcn.005596dc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005596ea
mov esp, ebp
pop ebp
ret
call fcn.00590d60
call fcn.00590d60
nop
sbb ecx, dword [eax - 0x7809ffae]
push edx
add byte [ecx - 0x48ffad7a], ah
mov byte [edx], dl
add byte [ebx], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [edx], eax
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc09a
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x62c7a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1a4], edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, edi
mov dword [ebp - 0x1a8], edi
call fcn.00456dc0
lea eax, [ebp - 0x1a0]
mov dword [edi], vtable.RobotMode.0
push eax
mov dword [0x63152c], edi
push 0x202
mov dword [ebp - 4], 0
mov dword [edi + 0x1a8], 0
mov dword [edi + 0x1ac], 0
call sub.WS2_32.dll_WSAStartup
push 0x118
call fcn.005596ac
add esp, 4
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x528a3d
push str.ROBOT
push 0
mov ecx, eax
call fcn.00528150
jmp 0x528a3f
xor eax, eax
push eax
mov ecx, 0x63151c
mov byte [ebp - 4], 0
call fcn.0044de70
mov esi, 1
push 0x118
call fcn.005596ac
add esp, 4
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x528a7d
push str.ROBOT
push esi
mov ecx, eax
call fcn.00528150
jmp 0x528a7f
xor eax, eax
push eax
mov ecx, 0x63151c
mov byte [ebp - 4], 0
call fcn.0044de70
inc esi
cmp esi, 0x14
jl 0x528a53
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005596ea
mov esp, ebp
pop ebp
ret 8