Function at 0x6dc11454
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4d0
mov eax, dword [0x6dc391d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
xor edi, edi
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0x198], edi
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x1b0], edi
mov eax, dword [0x6dc3a848]
cmp eax, 0x6dc3a848
je 0x6dc114a5
test dword [eax + 0x1c], 0x800
jne 0x6dc1fb7e
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
cmp ebx, edi
jne 0x6dc115a4
mov eax, dword [esi]
mov dword [ebp - 0x1b0], 1
cmp eax, edi
je 0x6dc1fb96
mov edi, dword [esi + 0x2c]
mov ebx, dword [eax + 4]
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x1a8], edi
test edi, edi
jne 0x6dc11507
test eax, eax
je 0x6dc1fbad
push edi
push eax
call fcn.6dc157ba
mov dword [ebp - 0x1ac], eax
mov edi, eax
test eax, eax
je 0x6dc1fbad
push edi
push ebx
push dword [esi + 4]
lea eax, [ebp - 0x198]
push eax
call fcn.6dc1160c
mov ebx, eax
test ebx, ebx
jne 0x6dc115a4
push dword [ebp - 0x198]
call fcn.6dc11d1c
test dword [ebp - 0x1a0], 0x1000
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x198]
mov dword [esi + 0x20], eax
push esi
jne 0x6dc1fb9e
call fcn.6dc11a32
mov ebx, eax
cmp ebx, 0x5b4
je 0x6dc11601
test dword [ebp - 0x1a0], 0x4000
jne 0x6dc11601
cmp ebx, 0x232a
je 0x6dc11601
push dword [ebp - 0x198]
call sym.DNSAPI.dll_NetInfo_Free
mov ecx, dword [ebp - 0x1a8]
xor eax, eax
push 0x40
push eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
lea eax, [esi + 0x34]
push eax
mov dword [esi + 0x2c], ecx
call sub.msvcrt.dll_memset
add esp, 0xc
xor edi, edi
cmp dword [esi + 0x10], edi
jne 0x6dc115b4
push edi
push edi
push ebx
push esi
call fcn.6dc12662
cmp dword [ebp - 0x1ac], edi
je 0x6dc115c7
push dword [ebp - 0x1ac]
call sym.DNSAPI.dll_DnsApiFree
cmp dword [ebp - 0x1b0], edi
je 0x6dc115d5
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [0x6dc3a848]
cmp eax, 0x6dc3a848
je 0x6dc115ee
test dword [eax + 0x1c], 0x400
jne 0x6dc1fd25
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.6dc02eaf
leave
ret 4
push esi
jmp 0x6dc1fb9e
push esi
push 0x6dc224cc
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc242f2
jmp 0x6dc114a5
push 0x57
pop ebx
jmp 0x6dc115a4
mov dword [esi + 0x2c], edi
call fcn.6dc2d19d
mov ebx, eax
jmp 0x6dc11579
and dword [ebp - 0x1a8], 0
push 0x64
pop eax
push dword [esi + 4]
mov dword [ebp - 0x19c], eax
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.6dc2780f
mov dword [ebp - 0x19c], eax
push ebx
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x4d0]
push eax
push dword [esi + 4]
lea eax, [ebp - 0x340]
push eax
call fcn.6dc27e73
mov ebx, eax
xor eax, eax
cmp dword [ebp - 0x19c], eax
jne 0x6dc1fc0f
cmp ebx, eax
jne 0x6dc115a4
mov ebx, 0x267c
jmp 0x6dc115a4
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x19c], eax
jbe 0x6dc115a4
mov eax, dword [ebp - 0x1a4]
shl eax, 2
mov edi, dword [ebp + eax - 0x340]
mov eax, dword [ebp + eax - 0x4d0]
mov dword [ebp - 0x198], eax
test eax, eax
jne 0x6dc1fc4d
push edi
call fcn.6dc030da
jmp 0x6dc1fcf0
push eax
call fcn.6dc11d1c
test dword [ebp - 0x1a0], 0x1000
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x198]
mov dword [esi + 0x20], eax
push esi
jne 0x6dc1fc90
call fcn.6dc11a32
mov ebx, eax
cmp ebx, 0x5b4
je 0x6dc1fc8f
test dword [ebp - 0x1a0], 0x4000
jne 0x6dc1fc8f
cmp ebx, 0x232a
jne 0x6dc1fc9a
push esi
mov dword [esi + 0x2c], edi
call fcn.6dc2d19d
mov ebx, eax
push dword [ebp - 0x198]
call sym.DNSAPI.dll_NetInfo_Free
push edi
call fcn.6dc030da
xor edi, edi
push 0x40
lea eax, [esi + 0x34]
push edi
push eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x24], edi
call sub.msvcrt.dll_memset
add esp, 0xc
cmp ebx, edi
je 0x6dc1fce6
cmp dword [esi + 8], edi
je 0x6dc1fcf0
cmp ebx, 0x232e
je 0x6dc1fce6
cmp ebx, 0x232f
je 0x6dc1fce6
cmp ebx, 0x2330
jne 0x6dc1fcf0
mov dword [ebp - 0x1a8], 1
inc dword [ebp - 0x1a4]
mov eax, dword [ebp - 0x19c]
cmp dword [ebp - 0x1a4], eax
jb 0x6dc1fc21
cmp dword [ebp - 0x1a8], 0
je 0x6dc115a4
cmp eax, 1
je 0x6dc115a4
xor ebx, ebx
jmp 0x6dc115a4
push ebx
push 0x6dc224cc
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc242f2
jmp 0x6dc115ee