Function at 0x409896
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x1c
call fcn.0041d3c8
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.0041d3c8
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4379d2
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.0041d3c8
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4379da
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
mov dword [ebp - 0xc], 0
push 0x14
call fcn.0041d3c8
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], 0
push 0
push dword [ebp - 0x18]
push dword [ebp + 8]
push dword [ebp + 8]
call fcn.0040a31e
mov eax, dword [ebp - 4]
push eax
push 0x18e
call fcn.0041d3c8
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
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.0041da80
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 0x409a2e
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x409a2c
imul eax, dword [edi]
jmp 0x409a21
mov ecx, eax
cmp ecx, 0x101
jle 0x409a3b
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.0041da80
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 0x409a79
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x409a77
imul eax, dword [edi]
jmp 0x409a6c
mov ecx, eax
cmp ecx, 0x81
jle 0x409a86
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.0041d3bc
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40a2a5
push 0x80000004
push 0
push 0x43797f
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x409aff
mov eax, 0x4372a0
push eax
push 1
mov ebx, 0x198
call fcn.0041e210
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x409b25
push ebx
call fcn.0041d3bc
add esp, 4
call fcn.0040618c
mov dword [ebp - 0x20], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x409b40
mov eax, 0x4372a0
push eax
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x409b66
push ebx
call fcn.0041d3bc
add esp, 4
push 2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00406664
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x409b8b
push ebx
call fcn.0041d3bc
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x409b9b
push ebx
call fcn.0041d3bc
add esp, 4
push 0x80000005
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x409bae
mov eax, 0x4372e6
push eax
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x409bd4
push ebx
call fcn.0041d3bc
add esp, 4
lea eax, [ebp - 0x2c]
push eax
call fcn.00406237
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x409bf0
push ebx
call fcn.0041d3bc
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x409c03
mov eax, 0x4372a0
push eax
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x409c29
push ebx
call fcn.0041d3bc
add esp, 4
lea eax, [ebp - 0x34]
push eax
call fcn.004076ab
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x409c45
push ebx
call fcn.0041d3bc
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x409c7e
push 0xa0000301
push 0
push 0x4372e6
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jmp 0x40a2ce
push 0x80000004
push 0
push 0x437999
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x409cb2
mov eax, 0x4372a0
push eax
push 1
mov ebx, 0x198
call fcn.0041e210
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x409cd8
push ebx
call fcn.0041d3bc
add esp, 4
call fcn.0040618c
mov dword [ebp - 0x20], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x409cf3
mov eax, 0x4372a0
push eax
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x409d19
push ebx
call fcn.0041d3bc
add esp, 4
push 2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00406664
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x409d3e
push ebx
call fcn.0041d3bc
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x409d4e
push ebx
call fcn.0041d3bc
add esp, 4
push 0x80000005
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x409d61
mov eax, 0x4372e6
push eax
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x409d87
push ebx
call fcn.0041d3bc
add esp, 4
lea eax, [ebp - 0x2c]
push eax
call fcn.00406237
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x409da3
push ebx
call fcn.0041d3bc
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x409db6
mov eax, 0x4372a0
push eax
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x409ddc
push ebx
call fcn.0041d3bc
add esp, 4
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
call fcn.00407fc1
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x409dfb
push ebx
call fcn.0041d3bc
add esp, 4
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0x38]
call fcn.00409823
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40a14c
push 0x10
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
push eax
push 0x10
call fcn.0041d3c8
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
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.0041d3bc
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.0041e4c0
add esp, 0x1c
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push 0x80000005
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x409f16
mov eax, 0x4372e6
push eax
push 3
mov ebx, 0x19c
call fcn.0041e810
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 0x409f42
push ebx
call fcn.0041d3bc
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 0x409f66
and eax, 0xff
jmp 0x409fbb
cmp ecx, 0x80000201
jne 0x409f71
cwde
jmp 0x409fbb
cmp ecx, 0x80000301
je 0x409fbb
cmp ecx, 0x80000401
je 0x409fbb
mov dword [ebp - 0x30], eax
cmp ecx, 0x80000501
je 0x409fab
cmp ecx, 0x80000601
je 0x409fb0
push 0x445
push 0x4052a87
push 2
call fcn.0041d3d4
add esp, 0xc
fld dword [ebp - 0x30]
jmp 0x409fb6
mov dword [ebp - 0x2c], edx
fld qword [ebp - 0x30]
call fcn.004012e6
push 0x80000301
push 0
push eax
push 2
mov ebx, 0x910
call fcn.0041e4c0
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x409fec
push ebx
call fcn.0041d3bc
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
nop
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
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.0041dc60
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 1
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.0041dc60
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 2
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.0041dc60
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 3
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.0041dc60
add esp, 0x10
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
push 0x4379b6
push dword [ebp - 0x2c]
push 0x4379b6
push dword [ebp - 0x24]
push 0x4379b6
push dword [ebp - 0x1c]
mov ecx, 7
call fcn.0040128a
add esp, 0x1c
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40a114
push ebx
call fcn.0041d3bc
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a124
push ebx
call fcn.0041d3bc
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a134
push ebx
call fcn.0041d3bc
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40a144
push ebx
call fcn.0041d3bc
add esp, 4
mov eax, dword [ebp - 0x38]
jmp 0x40a2ce
push 0x80000004
push 0
push 0x4379b8
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40a180
mov eax, 0x4372a0
push eax
push 1
mov ebx, 0x198
call fcn.0041e210
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40a1a6
push ebx
call fcn.0041d3bc
add esp, 4
call fcn.0040618c
mov dword [ebp - 0x20], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40a1c1
mov eax, 0x4372a0
push eax
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40a1e7
push ebx
call fcn.0041d3bc
add esp, 4
push 2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00406664
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40a20c
push ebx
call fcn.0041d3bc
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a21c
push ebx
call fcn.0041d3bc
add esp, 4
push 0x80000005
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x40a22f
mov eax, 0x4372e6
push eax
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40a255
push ebx
call fcn.0041d3bc
add esp, 4
lea eax, [ebp - 0x2c]
push eax
call fcn.00406237
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a271
push ebx
call fcn.0041d3bc
add esp, 4
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 8]
call fcn.00407fc1
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40a290
push ebx
call fcn.0041d3bc
add esp, 4
push dword [ebp - 0x34]
call fcn.004080e9
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
nop
push 0xa0000301
push 0
push 0x4372e6
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jmp 0x40a2ce
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0041d3bc
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0041d3bc
add esp, 4
pop ebx
call fcn.0041d3bc
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0041d3bc
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40a317
push ebx
call fcn.0041d3bc
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4