Function at 0x6de81970
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24c
mov ebx, dword [ebp + 8]
test byte [0x6de83018], 8
jne 0x6de81ae0
mov eax, dword [ebx + 0xc]
mov edi, dword [0x6de85e18]
cmp dword [eax], edi
je 0x6de819b0
lea esp, [ebp - 0xc]
mov esi, 0x887700fa
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret 4
mov edi, dword [0x6de85e1c]
cmp dword [eax + 4], edi
jne 0x6de81999
mov edi, dword [0x6de85e20]
cmp dword [eax + 8], edi
jne 0x6de81999
mov esi, dword [0x6de85e24]
cmp dword [eax + 0xc], esi
jne 0x6de81999
mov eax, dword [ebx]
mov dword [eax + 8], 0x6de81150
mov dword [eax + 0xc], 0x6de811c0
mov dword [eax + 0x10], 0x6de81230
mov dword [eax + 0x20], 0x6de812b0
mov dword [eax + 0x28], 0x6de81320
mov dword [eax + 0x2c], 0x6de81390
mov dword [eax + 0x30], 0x6de81400
mov dword [eax + 0x34], 0x6de814f0
mov dword [eax + 0x44], 0x6de81570
mov dword [eax + 0x48], 0x6de815d0
mov dword [eax + 0x4c], 0x6de81630
mov dword [eax + 0x50], 0x6de816a0
mov dword [eax + 0x54], 0x6de81740
mov dword [eax + 0x58], 0x6de817e0
mov dword [eax + 0x5c], 0x6de81860
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 0
lea eax, [ebp - 0x1a8]
mov dword [esp + 4], eax
mov dword [esp], 2
call sub.ws2_32.dll_WSAStartup
sub esp, 8
mov esi, eax
test eax, eax
jne 0x6de81dd1
lea edx, [ebp - 0x220]
mov ecx, 0x1d
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1ac], eax
mov ecx, dword [eax]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x78
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [ecx + 0x34]
mov dword [ebx + 0x18], 0x14
mov eax, esi
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov esi, dword [ebx + 8]
test esi, esi
je 0x6de81da0
mov eax, esi
shr eax, 0x10
je 0x6de81bc0
mov dword [esp + 4], 0xffffffff
mov edi, str._invalid_
mov dword [esp], esi
call sub.kernel32.dll_IsBadStringPtrW
sub esp, 8
test eax, eax
jne 0x6de81bd5
cmp word [esi], 0
je 0x6de81db0
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x6de81b20
mov ecx, 0x224c
mov dword [ebp + 8], ebx
mov word [ebp - 0x1a8], cx
lea ecx, [ebp - 0x1a6]
jmp 0x6de81b8b
cmp ax, 9
je 0x6de81c80
cmp ax, 0xa
jne 0x6de81cb6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
nop
lea ebx, [ebp - 0x86]
lea eax, [edx - 1]
cmp ecx, ebx
ja 0x6de81d28
test edx, edx
jle 0x6de81d28
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x6de81c98
jbe 0x6de81b48
cmp ax, 0x22
je 0x6de81d10
cmp ax, 0x5c
jne 0x6de81ca9
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x6de81b70
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call fcn.6de81060
mov edi, eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x6de81d90
mov esi, eax
shr esi, 0x10
je 0x6de81d60
movzx edx, byte [eax + 0xf]
mov dword [esp + 0x2c], edx
movzx edx, byte [eax + 0xe]
mov dword [esp + 0x28], edx
movzx edx, byte [eax + 0xd]
mov dword [esp + 0x24], edx
movzx edx, byte [eax + 0xc]
mov dword [esp + 0x20], edx
movzx edx, byte [eax + 0xb]
mov dword [esp + 0x1c], edx
movzx edx, byte [eax + 0xa]
mov dword [esp + 0x18], edx
movzx edx, byte [eax + 9]
mov dword [esp + 0x14], edx
movzx edx, byte [eax + 8]
mov dword [esp + 0x10], edx
movzx edx, word [eax + 6]
mov dword [esp + 0xc], edx
movzx edx, word [eax + 4]
mov dword [esp + 8], edx
mov eax, dword [eax]
mov dword [esp], str._08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
mov dword [esp + 4], eax
call fcn.6de81060
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Initializing_library_for__s___s__n
mov dword [esp + 8], 0x6de85358
mov dword [esp + 4], 0x6de83018
mov dword [esp], 3
call fcn.6de810c0
jmp 0x6de8198c
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6de81b70
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6de81b70
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x6de81d80
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefSPInit]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefSPInit]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefSPInit]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefSPInit]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x6de81b70
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6de81b70
mov byte [ecx], 0x22
mov ebx, dword [ebp + 8]
test eax, eax
jle 0x6de81dc9
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x1a8]
mov dword [esp], eax
call fcn.6de823e0
mov edi, eax
jmp 0x6de81bd5
movzx eax, ax
mov dword [esp], str._guid_0x_04hx_
mov dword [esp + 4], eax
call fcn.6de81060
jmp 0x6de81c4d
mov byte [ecx], al
add ecx, 1
jmp 0x6de81b70
mov eax, str._null_
jmp 0x6de81c4d
mov edi, str._null_
jmp 0x6de81bd5
mov eax, 0x224c
mov byte [ebp - 0x1a6], 0x22
lea ecx, [ebp - 0x1a6]
mov word [ebp - 0x1a8], ax
lea eax, [ecx + 1]
jmp 0x6de81d46
test byte [0x6de83018], 2
je 0x6de81999
mov dword [esp + 0xc], str.WSAStartup___failed_n
mov dword [esp + 8], 0x6de85358
mov dword [esp + 4], 0x6de83018
mov dword [esp], 1
call fcn.6de810c0
jmp 0x6de81999