Function at 0x410182
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 0x1c
call fcn.00414da4
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.00414da4
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x430fd8
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.00414da4
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x430fe0
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 - 8], 0
push 0x14
call fcn.00414da4
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 5
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
cmp dword [0x4312d3], 0
jne 0x4103b2
push 0x80000004
push 0
push 0x430f85
push 1
mov ebx, 0x168
call fcn.004152c0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x410264
mov eax, 0x42725b
push eax
push 1
mov ebx, 0x198
call fcn.00415730
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x41028a
push ebx
call fcn.00414d9e
add esp, 4
call fcn.004037a5
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push 2
push 0x80000004
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4102b1
mov eax, 0x42725b
push eax
push 0x80000005
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4102c5
mov eax, 0x42725c
push eax
push 3
mov ebx, 0x10
mov eax, 0x4183b0
call fcn.004151b0
add esp, 0x28
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4102f0
push ebx
call fcn.00414d9e
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x410300
push ebx
call fcn.00414d9e
add esp, 4
push 0x80000005
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x410313
mov eax, 0x42725c
push eax
push 1
mov ebx, 0x168
call fcn.004152c0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x410339
push ebx
call fcn.00414d9e
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00403877
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x410355
push ebx
call fcn.00414d9e
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x410368
mov eax, 0x42725b
push eax
push 1
mov ebx, 0x168
call fcn.004152c0
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41038e
push ebx
call fcn.00414d9e
add esp, 4
lea eax, [ebp - 0x2c]
push eax
call fcn.00403a7c
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4103aa
push ebx
call fcn.00414d9e
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [0x4312d3], eax
mov dword [ebp - 0x14], esp
mov eax, dword [ebp - 4]
push eax
push 0x18e
call fcn.00414da4
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 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
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x41045d
push 0x158
push 0x402a5be
push 6
call fcn.00414db6
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov edi, dword [ebp - 0x1c]
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.00415110
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 0x4104aa
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x4104a8
imul eax, dword [edi]
jmp 0x41049d
mov ecx, eax
cmp ecx, 0x101
jle 0x4104b7
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.00415110
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 0x4104f5
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x4104f3
imul eax, dword [edi]
jmp 0x4104e8
mov ecx, eax
cmp ecx, 0x81
jle 0x410502
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.00414d9e
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x410b40
push 0x80000004
push 0
push 0x430f9f
push 1
mov ebx, 0x168
call fcn.004152c0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x41057b
mov eax, 0x42725b
push eax
push 1
mov ebx, 0x198
call fcn.00415730
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4105a1
push ebx
call fcn.00414d9e
add esp, 4
call fcn.004037a5
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push 2
push 0x80000004
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4105c8
mov eax, 0x42725b
push eax
push 0x80000005
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4105dc
mov eax, 0x42725c
push eax
push 3
mov ebx, 0x10
mov eax, 0x4183b0
call fcn.004151b0
add esp, 0x28
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x410607
push ebx
call fcn.00414d9e
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x410617
push ebx
call fcn.00414d9e
add esp, 4
push 0x80000005
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x41062a
mov eax, 0x42725c
push eax
push 1
mov ebx, 0x168
call fcn.004152c0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x410650
push ebx
call fcn.00414d9e
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00403877
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41066c
push ebx
call fcn.00414d9e
add esp, 4
lea eax, [ebp - 0x28]
push eax
push dword [0x4312d3]
call fcn.00403dce
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41068e
push ebx
call fcn.00414d9e
add esp, 4
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0x2c]
call fcn.004041e2
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4109f1
mov dword [ebp - 0x14], esp
push 0x10
push dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push eax
push 0x10
call fcn.00414da4
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 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
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x410728
push 0x2ba
push 0x402a5be
push 6
call fcn.00414db6
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov edi, dword [ebp - 0x1c]
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.00414d9e
add esp, 4
pop eax
mov ebx, dword [ebp - 0xc]
add ebx, 0x10
mov dword [ebp - 0x14], ebx
push 0x80000301
push 0
push 4
push 0x80000301
push 0
mov ebx, dword [ebp - 0x14]
push dword [ebx]
push 2
mov ebx, 0x910
call fcn.004159e0
add esp, 0x1c
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push 0x80000005
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4107c8
mov eax, 0x42725c
push eax
push 3
mov ebx, 0x19c
call fcn.00415b70
add esp, 0x28
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4107f4
push ebx
call fcn.00414d9e
add esp, 4
push 0x80000301
push 0
push 4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
cmp ecx, 0x80000101
jne 0x410818
and eax, 0xff
jmp 0x41086d
cmp ecx, 0x80000201
jne 0x410823
cwde
jmp 0x41086d
cmp ecx, 0x80000301
je 0x41086d
cmp ecx, 0x80000401
je 0x41086d
mov dword [ebp - 0x2c], eax
cmp ecx, 0x80000501
je 0x41085d
cmp ecx, 0x80000601
je 0x410862
push 0x321
push 0x402a5be
push 2
call fcn.00414db6
add esp, 0xc
fld dword [ebp - 0x2c]
jmp 0x410868
mov dword [ebp - 0x28], edx
fld qword [ebp - 0x2c]
call fcn.00403850
push 0x80000301
push 0
push eax
push 2
mov ebx, 0x910
call fcn.004159e0
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x41089e
push ebx
call fcn.00414d9e
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
add ebx, eax
mov dword [ebp - 0x14], ebx
push 0x80000101
push 0
mov ebx, dword [ebp - 0x14]
mov al, byte [ebx]
push eax
push 1
mov ebx, 0x168
call fcn.004152c0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 1
add ebx, eax
mov dword [ebp - 0x1c], ebx
push 0x80000101
push 0
mov ebx, dword [ebp - 0x1c]
mov al, byte [ebx]
push eax
push 1
mov ebx, 0x168
call fcn.004152c0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push 0x80000101
push 0
mov ebx, dword [ebp - 0x24]
mov al, byte [ebx]
push eax
push 1
mov ebx, 0x168
call fcn.004152c0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 3
add ebx, eax
mov dword [ebp - 0x2c], ebx
push 0x80000101
push 0
mov ebx, dword [ebp - 0x2c]
mov al, byte [ebx]
push eax
push 1
mov ebx, 0x168
call fcn.004152c0
add esp, 0x10
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
push 0x430fbc
push dword [ebp - 0x28]
push 0x430fbc
push dword [ebp - 0x20]
push 0x430fbc
push dword [ebp - 0x18]
mov ecx, 7
call fcn.0040109b
add esp, 0x1c
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4109b9
push ebx
call fcn.00414d9e
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4109c9
push ebx
call fcn.00414d9e
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4109d9
push ebx
call fcn.00414d9e
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4109e9
push ebx
call fcn.00414d9e
add esp, 4
mov eax, dword [ebp - 0x34]
jmp 0x410b69
push 0x80000004
push 0
push 0x430fbe
push 1
mov ebx, 0x168
call fcn.004152c0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x410a25
mov eax, 0x42725b
push eax
push 1
mov ebx, 0x198
call fcn.00415730
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x410a4b
push ebx
call fcn.00414d9e
add esp, 4
call fcn.004037a5
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push 2
push 0x80000004
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x410a72
mov eax, 0x42725b
push eax
push 0x80000005
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x410a86
mov eax, 0x42725c
push eax
push 3
mov ebx, 0x10
mov eax, 0x4183b0
call fcn.004151b0
add esp, 0x28
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x410ab1
push ebx
call fcn.00414d9e
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x410ac1
push ebx
call fcn.00414d9e
add esp, 4
push 0x80000005
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x410ad4
mov eax, 0x42725c
push eax
push 1
mov ebx, 0x168
call fcn.004152c0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x410afa
push ebx
call fcn.00414d9e
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00403877
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x410b16
push ebx
call fcn.00414d9e
add esp, 4
lea eax, [ebp - 0x28]
push eax
push dword [0x4312d3]
call fcn.00403dce
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x410b38
push ebx
call fcn.00414d9e
add esp, 4
push dword [ebp - 0x2c]
call fcn.004041c1
push 0xa0000301
push 0
push 0x42725c
push 1
mov ebx, 0x168
call fcn.004152c0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x410b69
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.00414d9e
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.00414d9e
add esp, 4
pop ebx
call fcn.00414d9e
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00414d9e
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x410bb2
push ebx
call fcn.00414d9e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4