Function at 0x1005bb7c
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
push ebx
lea eax, [ebp - 0xc8]
push esi
push edi
push 0x40
mov edi, dword [ebp + 0xc]
push eax
push edi
call fcn.10052f4d
add esp, 0xc
call fcn.100555da
test al, 1
je 0x1005bbaf
mov dword [ebp - 0xc], 1
jmp 0x1005bbbe
test al, 2
je 0x1005c1af
mov dword [ebp - 0xc], 2
call fcn.1004f3e2
test eax, eax
jge 0x1005bc0c
cmp dword [ebp - 0xc], 2
jne 0x1005bbd8
push 0x3e8
push 2
push 6
jmp 0x1005bbde
push 0
push 2
push 2
call fcn.100595dc
add esp, 0xc
test eax, eax
jge 0x1005bc03
push 0x8eb
push 0x1001b488
push 0x1a
call fcn.100571a6
add esp, 0xc
jmp 0x1005c1af
push eax
call fcn.1004f3bd
add esp, 4
cmp dword [ebp - 0xc], 2
jne 0x1005bc4c
push edi
push 0x1001b668
call fcn.1005b4a7
add esp, 8
lea eax, [ebp - 0x78]
push 0
push eax
push edi
call fcn.1005c2a9
add esp, 0xc
test eax, eax
je 0x1005bc7e
push 0x8f8
push 0x1001b488
push 0x19
call fcn.100571a6
add esp, 0xc
jmp 0x1005c1af
push 0
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0xc8]
push ecx
call fcn.10055b71
add esp, 0xc
test eax, eax
je 0x1005bc7e
push 0x900
push 0x1001b488
push 0x19
call fcn.100571a6
add esp, 0xc
jmp 0x1005c1af
xor esi, esi
cmp dword [0x1001b470], esi
je 0x1005bc9c
call fcn.1004f373
push eax
call fcn.1005c307
add esp, 4
mov dword [0x1001b470], esi
call fcn.1004f34e
mov dword [0x10039348], eax
lea eax, [ebp - 0x78]
push eax
call fcn.1004f373
push dword [eax]
call fcn.1005c1b8
add esp, 8
mov esi, eax
test esi, esi
jne 0x1005bd8f
push 0x7c
call fcn.100409b0
add esp, 4
mov esi, eax
test esi, esi
jne 0x1005bcec
push 0x916
push 0x1001b488
push 0x12
call fcn.100571a6
add esp, 0xc
jmp 0x1005c1af
cmp dword [ebp - 0xc], 2
jne 0x1005bf6d
lea ebx, [esi + 8]
push 0x10
push 0
push ebx
call fcn.10068ed0
mov word [ebx], 6
add esp, 0xc
call fcn.1004f455
push eax
call fcn.100596da
mov word [ebx + 0xc], ax
add esp, 4
lea eax, [ebp - 0x78]
push eax
push edi
push 0x1001b64c
call fcn.1005b4a7
add esp, 0xc
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.1005c23f
add esp, 8
test eax, eax
jne 0x1005bd59
push 0x924
push 0x1001b488
push 0x19
call fcn.100571a6
add esp, 0xc
jmp 0x1005c1af
lea eax, [ebp - 0x78]
push eax
push 0x1001b624
call fcn.1005b4a7
add esp, 8
lea eax, [ebp - 0x78]
lea ecx, [esi + 0x18]
push eax
push ecx
call fcn.1004d6a0
add esp, 8
mov dword [esi], 1
push esi
call fcn.1004f373
push eax
call fcn.1005c312
add esp, 8
push dword [ebp + 8]
mov eax, dword [esi]
and eax, 0x1fff
mov dword [0x10039340], eax
call fcn.1004d620
add esp, 4
inc eax
push eax
push dword [ebp + 8]
push 0x1003934c
call fcn.100691f0
add esp, 0xc
push 0x40c
push 0
push 0x10038f28
call fcn.10068ed0
add esp, 0xc
call fcn.1004f885
mov dword [ebp - 4], eax
mov eax, 0x3f800000
mov dword [ebp - 8], eax
mov dword [ebp - 0x38], eax
fld dword [ebp - 8]
lea eax, [ebp - 0x34]
fld dword [eax - 4]
fmul dword [0x1000eb4c]
lea ecx, [ebp - 0x2c]
fst dword [eax]
faddp st(1)
add eax, 4
cmp eax, ecx
jb 0x1005bde5
fstp dword [ebp - 8]
fild dword [ebp - 4]
fstp dword [ebp - 0x14]
fld dword [ebp - 8]
fld qword [0x1000eb50]
fldz
mov dword [ebp - 0x10], 0
xor edi, edi
fld dword [ebp + edi - 0x38]
fmul dword [ebp - 0x14]
lea ebx, [ebp + edi - 0x20]
fdiv st(3)
fst st(1)
call fcn.10069158
mov dword [ebx], eax
mov ecx, eax
cmp dword [ebp - 4], 0
jle 0x1005be56
fld st(0)
fisub dword [ebx]
fcomp st(2)
fnstsw ax
sahf
jbe 0x1005be45
inc ecx
mov dword [ebx], ecx
cmp dword [ebp - 4], 0
jle 0x1005be56
cmp dword [ebx], 1
jge 0x1005be56
mov dword [ebx], 1
mov eax, dword [ebx]
add edi, 4
add dword [ebp - 0x10], eax
cmp edi, 8
jl 0x1005be19
fstp dword [ebp - 8]
fstp st(0)
fstp st(0)
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
xor eax, eax
cmp dword [ebp - 0x18], eax
jge 0x1005be7d
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], 0
jle 0x1005be90
cmp dword [ebp - 0x18], 1
jge 0x1005be90
mov dword [ebp - 0x18], 1
xor edi, edi
push 0x40c
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], 1
push 0x10039750
call fcn.10068ed0
add esp, 0xc
mov eax, dword [0x10039340]
push eax
call fcn.100596fd
add esp, 4
mov dword [0x10039750], eax
mov eax, dword [0x10039344]
push eax
call fcn.100596fd
add esp, 4
mov dword [0x10039754], eax
mov eax, dword [0x10039348]
push eax
call fcn.100596fd
add esp, 4
mov dword [0x10039758], eax
mov ebx, 0x40c
push 0x1003934c
push 0x1003975c
call fcn.1004d6a0
add esp, 8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
cmp dword [ebp - 0x10], eax
jae 0x1005c148
cmp dword [ebp - 0xc], 2
jne 0x1005bfc5
push 0x10
lea eax, [esi + 8]
push eax
call fcn.1004f3e2
push eax
call sub.WSOCK32.dll_connect
cmp dword [ebp - 4], edi
je 0x1005bfed
push edi
push ebx
push 0x10039750
call fcn.1004f3e2
push eax
call sub.WSOCK32.dll_send
cmp eax, ebx
je 0x1005bfed
call sub.WSOCK32.dll_WSAGetLastError
push 0x9ad
push 0x1001b488
push 0x34
call fcn.100571a6
add esp, 0xc
jmp 0x1005c1af
lea edi, [esi + 8]
push 0x10
push 0
push edi
call fcn.10068ed0
mov word [edi], 2
add esp, 0xc
call fcn.1004f455
push eax
call fcn.100596da
mov word [esi + 0xa], ax
add esp, 4
lea eax, [ebp - 0x78]
push eax
call fcn.10059595
add esp, 4
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x1005bd6a
push 0x93e
push 0x1001b488
push 0x19
call fcn.100571a6
add esp, 0xc
jmp 0x1005c1af
cmp dword [ebp - 4], edi
je 0x1005bfed
push 0x10
lea eax, [esi + 8]
push eax
push edi
push ebx
push 0x10039750
call fcn.1004f3e2
push eax
call fcn.1005966e
add esp, 0x18
cmp eax, ebx
jne 0x1005c164
mov dword [ebp - 4], edi
mov dword [ebp - 0x1cc], edi
call fcn.1004f3e2
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x1cc]
mov ecx, dword [eax]
lea eax, [ebp - 0x1cc]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x2c]
push ecx
push edi
push edi
push eax
call fcn.1004f3e2
inc eax
push eax
call fcn.10059608
add esp, 0x14
cmp eax, 0xffffffff
je 0x1005c114
test eax, eax
je 0x1005c134
mov dword [ebp - 0x24], 0x10
push ebx
push edi
push 0x10039750
call fcn.10068ed0
add esp, 0xc
cmp dword [ebp - 0xc], 2
jne 0x1005c08a
push edi
push ebx
push 0x10039750
call fcn.1004f3e2
push eax
call sub.WSOCK32.dll_recv
cmp eax, ebx
je 0x1005c0b3
push 0x9fc
push 0x1001b488
push 0x35
call fcn.100571a6
add esp, 0xc
jmp 0x1005c1af
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x88]
push eax
push ecx
push edi
push ebx
push 0x10039750
call fcn.1004f3e2
push eax
call fcn.100596a4
add esp, 0x18
cmp eax, 0xffffffff
je 0x1005c190
mov eax, dword [0x10039750]
push eax
call fcn.100596fd
add esp, 4
mov dword [0x10038f28], eax
mov eax, dword [0x10039754]
push eax
call fcn.100596fd
add esp, 4
mov dword [0x10038f2c], eax
mov eax, dword [0x10039758]
push eax
call fcn.100596fd
add esp, 4
mov dword [0x10038f30], eax
push 0x1003975c
push 0x10038f34
call fcn.1004d6a0
add esp, 8
mov eax, dword [0x10039340]
cmp dword [0x10038f28], eax
jne 0x1005c13f
mov dword [ebp - 8], 1
jmp 0x1005c13f
call fcn.100481d0
cmp dword [eax], 4
je 0x1005c13f
push 0x9dc
push 0x1001b488
push 0x3c
call fcn.100571a6
add esp, 0xc
jmp 0x1005c1af
mov dword [ebp - 4], 1
add dword [ebp - 0x10], 4
cmp dword [ebp - 8], edi
je 0x1005bf05
cmp dword [ebp - 8], 1
je 0x1005c1a6
push 0xa2a
push 0x1001b488
push 0x1b
call fcn.100571a6
add esp, 0xc
jmp 0x1005c1af
push 0x9b9
mov esi, 0x1001b488
push esi
push 0x34
call fcn.100571a6
add esp, 0xc
call fcn.10059861
push 0x9be
push esi
push 0x34
call fcn.100571a6
add esp, 0xc
jmp 0x1005c1af
push 0xa08
push 0x1001b488
push 0x35
call fcn.100571a6
add esp, 0xc
jmp 0x1005c1af
mov eax, 0x10038f34
inc dword [esi]
jmp 0x1005c1b1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret