Function at 0x51b68e
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
push 0x1c
call fcn.00535595
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
add ebx, 8
push ebx
push 0x109
call fcn.00535595
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x621187
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x101
rep stosb byte es:[edi], al
add ebx, 4
push ebx
push 0x89
call fcn.00535595
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x62118f
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x81
rep stosb byte es:[edi], al
mov dword [ebp - 0xc], 0
push 0x14
call fcn.00535595
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 5
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], esp
mov eax, dword [ebp - 8]
push eax
push 0x18e
call fcn.00535595
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x81
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push 0x101
call dword [sym.imp.ws2_32.dll_WSAStartup]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x51b7d7
push 6
call fcn.0053559b
add esp, 4
push eax
mov ebx, dword [ebp - 0x1c]
push ebx
mov edi, dword [ebp - 0x20]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.00536400
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x51b824
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x51b822
imul eax, dword [edi]
jmp 0x51b817
mov ecx, eax
cmp ecx, 0x101
jle 0x51b831
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x101
push ebx
push edi
push 1
mov eax, 2
call fcn.00536400
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x51b86f
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x51b86d
imul eax, dword [edi]
jmp 0x51b862
mov ecx, eax
cmp ecx, 0x81
jle 0x51b87c
mov ecx, 0x81
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x81
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0053558f
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x51bc7e
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ws2_32.dll_gethostbyname]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x51b8e5
push 6
call fcn.0053559b
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x51bc5f
mov dword [ebp - 0x18], esp
push 0x10
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
push eax
push 0x10
call fcn.00535595
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call dword [0x637add]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x51b968
push 6
call fcn.0053559b
add esp, 4
push eax
mov ebx, dword [ebp - 0x1c]
push ebx
mov edi, dword [ebp - 0x20]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0053558f
add esp, 4
pop eax
mov ebx, dword [ebp - 0x10]
add ebx, 0x10
mov dword [ebp - 0x18], ebx
push 0x80000301
push 0
push 4
push 0x80000301
push 0
mov ebx, dword [ebp - 0x18]
push dword [ebx]
push 2
mov ebx, 0x910
call fcn.005367e0
add esp, 0x1c
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x51ba08
mov eax, 0x6187fe
push eax
push 3
mov ebx, 0x19c
call fcn.00536650
add esp, 0x28
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x51ba34
push ebx
call fcn.0053558f
add esp, 4
push 0x80000301
push 0
push 4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x80000101
jne 0x51ba58
and eax, 0xff
jmp 0x51baa3
cmp ecx, 0x80000201
jne 0x51ba63
cwde
jmp 0x51baa3
cmp ecx, 0x80000301
je 0x51baa3
cmp ecx, 0x80000401
je 0x51baa3
mov dword [ebp - 0x30], eax
cmp ecx, 0x80000501
je 0x51ba93
cmp ecx, 0x80000601
je 0x51ba98
push 2
call fcn.0053559b
add esp, 4
fld dword [ebp - 0x30]
jmp 0x51ba9e
mov dword [ebp - 0x2c], edx
fld qword [ebp - 0x30]
call fcn.0049d9a9
push 0x80000301
push 0
push eax
push 2
mov ebx, 0x910
call fcn.005367e0
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x51bad4
push ebx
call fcn.0053558f
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x14]
call fcn.0049d8c2
mov eax, 0
cmp eax, ecx
jl 0x51baf6
push 1
call fcn.0053559b
add esp, 4
add ebx, eax
mov dword [ebp - 0x18], ebx
push 0x80000101
push 0
mov ebx, dword [ebp - 0x18]
mov al, byte [ebx]
push eax
push 1
mov ebx, 0x168
call fcn.005386e0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
call fcn.0049d8c2
mov eax, 1
cmp eax, ecx
jl 0x51bb3b
push 1
call fcn.0053559b
add esp, 4
add ebx, eax
mov dword [ebp - 0x20], ebx
push 0x80000101
push 0
mov ebx, dword [ebp - 0x20]
mov al, byte [ebx]
push eax
push 1
mov ebx, 0x168
call fcn.005386e0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x14]
call fcn.0049d8c2
mov eax, 2
cmp eax, ecx
jl 0x51bb80
push 1
call fcn.0053559b
add esp, 4
add ebx, eax
mov dword [ebp - 0x28], ebx
push 0x80000101
push 0
mov ebx, dword [ebp - 0x28]
mov al, byte [ebx]
push eax
push 1
mov ebx, 0x168
call fcn.005386e0
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x14]
call fcn.0049d8c2
mov eax, 3
cmp eax, ecx
jl 0x51bbc5
push 1
call fcn.0053559b
add esp, 4
add ebx, eax
mov dword [ebp - 0x30], ebx
push 0x80000101
push 0
mov ebx, dword [ebp - 0x30]
mov al, byte [ebx]
push eax
push 1
mov ebx, 0x168
call fcn.005386e0
add esp, 0x10
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
push 0x61898a
push dword [ebp - 0x2c]
push 0x61898a
push dword [ebp - 0x24]
push 0x61898a
push dword [ebp - 0x1c]
mov ecx, 7
call fcn.0049d94d
add esp, 0x1c
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x51bc27
push ebx
call fcn.0053558f
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x51bc37
push ebx
call fcn.0053558f
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x51bc47
push ebx
call fcn.0053558f
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x51bc57
push ebx
call fcn.0053558f
add esp, 4
mov eax, dword [ebp - 0x38]
jmp 0x51bc88
mov dword [ebp - 0x18], esp
call dword [sym.imp.ws2_32.dll_WSACleanup]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x51bc7e
push 6
call fcn.0053559b
add esp, 4
mov eax, 0x618809
jmp 0x51bc88
push eax
mov ebx, dword [ebp - 8]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0053558f
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0053558f
add esp, 4
pop ebx
call fcn.0053558f
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0053558f
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x51bcd1
push ebx
call fcn.0053558f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4