Function at 0x475865
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x1c
call fcn.0053b7c5
add esp, 4
mov dword [ebp - 4], 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.0053b7c5
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x9d68dd
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 0xa
call fcn.0053b7c5
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x564bba
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosb byte es:[edi], al
stosb byte es:[edi], al
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xa00
call fcn.00540d10
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 4]
push eax
push 0x10f
call fcn.0053b7c5
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 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, 2
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 dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_WSAStartup]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4759a9
push 6
call fcn.0053b7dd
add esp, 4
push eax
mov ebx, dword [ebp - 0x14]
push ebx
mov edi, dword [ebp - 0x18]
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.0053bc60
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 0x4759f6
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x4759f4
imul eax, dword [edi]
jmp 0x4759e9
mov ecx, eax
cmp ecx, 0x101
jle 0x475a03
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.0053bc60
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 0x475a41
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x475a3f
imul eax, dword [edi]
jmp 0x475a34
mov ecx, eax
cmp ecx, 2
jle 0x475a4b
mov ecx, 2
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 2
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.0053b7cb
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x475a97
mov dword [0x9e234a], 1
push 0
mov ebx, 0x104
call fcn.0053c530
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [0x9e234e]
test ebx, ebx
je 0x475ac3
push ebx
call fcn.0053b7cb
add esp, 4
pop eax
mov dword [0x9e234e], eax
push 0
mov ebx, 4
mov eax, 0x543870
call fcn.0053bce0
add esp, 4
mov dword [0x9e2352], eax
push 0
mov ebx, 4
mov eax, 0x543870
call fcn.0053bce0
add esp, 4
mov dword [0x9e2356], eax
mov dword [ebp - 0xc], esp
push 0
push 0
push 4
call dword [sym.imp.KERNEL32.dll_HeapCreate]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x475b2f
push 6
call fcn.0053b7dd
add esp, 4
mov dword [0x9e235a], eax
mov ecx, 0x3e8
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.0053b7c5
add esp, 4
mov edi, eax
mov dword [edi], 1
add edi, 4
pop ecx
push eax
push ecx
mov dword [edi], 0x3e8
add edi, 4
mov ebx, dword [0x9e235e]
call fcn.0040167b
pop edx
test ecx, ecx
je 0x475c47
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
add ebx, 0x10
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x475b8e
push ebx
call fcn.0053b7cb
add esp, 4
pop ebx
add ebx, 0x14
push ebx
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x475bb0
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x475bac
imul eax, dword [ebx]
jmp 0x475ba1
mov ecx, eax
test ecx, ecx
je 0x475bcb
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0053b7cb
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x475bb6
call fcn.0053b7cb
add esp, 4
pop ebx
add ebx, 0x18
push ebx
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x475bf5
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x475bf1
imul eax, dword [ebx]
jmp 0x475be6
mov ecx, eax
test ecx, ecx
je 0x475c14
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.0053b7cb
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x475bfb
call fcn.0053b7cb
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.0053b7cb
add esp, 4
pop ebx
call fcn.0053b7cb
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x475b76
pop edx
pop edi
test edx, edx
je 0x475d50
mov ebx, edi
push edx
push ebx
push 0x60
call fcn.0053b7c5
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x18
rep stosd dword es:[edi], eax
add ebx, 0x24
push ebx
push 0x30
call fcn.0053b7c5
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x9d68b0
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push ebx
mov ebx, edi
mov ecx, 0xa
push ecx
push ebx
push 0x40
call fcn.0053b7c5
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x475c98
pop ebx
add ebx, 0x18
push ebx
push 0x30
call fcn.0053b7c5
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x9d68b0
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push ebx
mov ebx, edi
mov ecx, 0xa
push ecx
push ebx
push 8
call fcn.0053b7c5
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0x9d68b8
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x475ce8
pop ebx
add ebx, 4
push ebx
push 8
call fcn.0053b7c5
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0x9d68b8
pop ebx
pop ebx
pop edx
add ebx, 4
dec edx
jne 0x475c51
push dword [0x9e235e]
call fcn.0053b7cb
add esp, 4
pop eax
mov dword [0x9e235e], eax
xor ecx, ecx
lea eax, [ebp - 8]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0x3e8
jg 0x475ddc
mov ebx, dword [0x9e235e]
call fcn.0040167b
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x475d9c
push 4
call fcn.0053b7dd
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x475daf
push 1
call fcn.0053b7dd
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
push 0
mov ebx, 4
mov eax, 0x543870
call fcn.0053bce0
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
pop ebx
pop ecx
jmp 0x475d6b
add esp, 8
push 0x9e2366
push 0x9e2362
call fcn.00475e4e
mov eax, 0x9d68d4
push eax
mov ebx, dword [0x9e236a]
test ebx, ebx
je 0x475e07
push ebx
call fcn.0053b7cb
add esp, 4
pop eax
mov dword [0x9e236a], eax
call fcn.00477b7c
mov eax, 0
jmp 0x475e1c
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0053b7cb
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0053b7cb
add esp, 4
pop ebx
call fcn.0053b7cb
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret