Function at 0x41d630
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ca80
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x48948c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x108], ecx
mov eax, dword [ebp - 0x108]
mov byte [eax + 0x34], 0
mov dword [ebp - 0xa0], 0
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, dword [ebp - 0x108]
add ecx, 4
call fcn.0041dd30
add eax, 1
push eax
lea ecx, [ebp - 0x30]
call fcn.0041df90
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], 0
lea edx, [ebp - 0x60]
push edx
mov ecx, dword [ebp - 0x108]
add ecx, 4
call fcn.00415bc0
jmp 0x41d6c6
lea ecx, [ebp - 0x60]
call fcn.0041df30
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, dword [ebp - 0x108]
add ecx, 4
call fcn.0041df00
push eax
lea ecx, [ebp - 0x60]
call fcn.00416040
movzx edx, al
test edx, edx
je 0x41d731
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x64], eax
push 1
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x60]
call fcn.0041df50
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
call fcn.0041d420
mov edx, dword [eax]
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041cf50
mov ecx, dword [ebp - 0x64]
mov dword [eax], ecx
jmp 0x41d6b5
mov ecx, dword [ebp - 0x108]
add ecx, 4
call fcn.0041dd30
push eax
lea ecx, [ebp - 0x30]
call fcn.0041cf50
mov edx, dword [ebp - 0x108]
mov ecx, dword [edx + 0x38]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x108]
call fcn.0041d4a0
fstp qword [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.0041e000
mov byte [ebp - 4], 1
lea edx, [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x108]
add ecx, 0x1c
call fcn.00415bc0
jmp 0x41d789
lea ecx, [ebp - 0x6c]
call fcn.0041df70
lea eax, [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0x108]
add ecx, 0x1c
call fcn.0041df00
push eax
lea ecx, [ebp - 0x6c]
call fcn.00416040
movzx ecx, al
test ecx, ecx
je 0x41d7f8
lea ecx, [ebp - 0x6c]
call fcn.00415fe0
sub esp, 0xc
mov edx, esp
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
lea ecx, [ebp - 0x6c]
call fcn.0041df50
fild dword [eax]
fadd qword [ebp - 0x14]
sub esp, 8
fstp qword [esp]
lea ecx, [ebp - 0xcc]
push ecx
call fcn.0041f4c0
add esp, 0x18
push eax
lea ecx, [ebp - 0x50]
call fcn.0041e0d0
jmp 0x41d781
push 0x457da0
lea edx, [ebp - 0xd4]
push edx
lea ecx, [ebp - 0x50]
call fcn.0041df00
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x50]
call fcn.00415bc0
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
call fcn.0041f4e0
add esp, 0x14
mov dword [ebp - 0x18], 0x1002
push 0x1002
call fcn.00430800
add esp, 4
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x38]
call fcn.0041d130
mov ecx, dword [ebp - 0x108]
movzx edx, byte [ecx + 0x34]
test edx, edx
jne 0x41db29
mov ecx, dword [ebp - 0x108]
call fcn.0041d4a0
fstp qword [ebp - 0x74]
mov dword [ebp - 0x80], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0041e090
movzx eax, al
test eax, eax
jne 0x41d8fc
lea ecx, [ebp - 0x50]
call fcn.0041e0b0
fld qword [ebp - 0x74]
fcomp qword [eax]
fnstsw ax
test ah, 0x41
jp 0x41d8bb
lea ecx, [ebp - 0x50]
call fcn.0041e0b0
fld qword [eax]
fsub qword [ebp - 0x74]
fstp qword [ebp - 0x110]
jmp 0x41d8c3
fldz
fstp qword [ebp - 0x110]
fld qword [ebp - 0x110]
fnstcw word [ebp - 0x112]
movzx eax, word [ebp - 0x112]
or eax, 0xc00
mov dword [ebp - 0x118], eax
fldcw word [ebp - 0x118]
fistp qword [ebp - 0x120]
fldcw word [ebp - 0x112]
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
push edx
push 0
push 0
lea ecx, [ebp - 0x30]
call fcn.0041cf50
push eax
mov ecx, dword [ebp - 0x108]
add ecx, 4
call fcn.0041dd30
add eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x108]
movzx ecx, byte [eax + 0x34]
test ecx, ecx
je 0x41d93b
jmp 0x41db29
cmp dword [ebp - 0x78], 0x102
je 0x41da09
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x84], edx
jmp 0x41d962
mov eax, dword [ebp - 0x84]
add eax, 1
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x108]
add ecx, 4
call fcn.0041dd30
cmp dword [ebp - 0x84], eax
jge 0x41da09
push 0x1002
mov ecx, dword [ebp - 0x54]
push ecx
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x108]
add ecx, 4
call fcn.0041dd50
mov ecx, dword [eax + 4]
call fcn.00457e90
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jle 0x41da04
mov ecx, dword [ebp - 0x84]
push ecx
mov ecx, dword [ebp - 0x108]
add ecx, 4
call fcn.0041dd50
mov edx, dword [eax]
mov dword [ebp - 0x124], edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x124]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x124]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x108]
movzx edx, byte [ecx + 0x34]
test edx, edx
je 0x41da04
jmp 0x41da09
jmp 0x41d953
mov ecx, dword [ebp - 0x108]
call fcn.0041d4a0
fstp qword [ebp - 0x74]
mov byte [ebp - 0x79], 0
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x50]
call fcn.00415bc0
jmp 0x41da37
lea ecx, [ebp - 0x90]
call fcn.0041e150
lea ecx, [ebp - 0xe8]
push ecx
lea ecx, [ebp - 0x50]
call fcn.0041df00
push eax
lea ecx, [ebp - 0x90]
call fcn.00416040
movzx edx, al
test edx, edx
je 0x41dae3
lea ecx, [ebp - 0x90]
call fcn.0041df50
fld qword [ebp - 0x74]
fcomp qword [eax]
fnstsw ax
test ah, 1
jne 0x41dae3
lea ecx, [ebp - 0x90]
call fcn.0041df50
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x128]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x108]
movzx edx, byte [ecx + 0x34]
test edx, edx
je 0x41daab
jmp 0x41dae3
lea ecx, [ebp - 0x90]
call fcn.0041df50
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x90]
call fcn.0041df50
fild dword [eax + 0xc]
mov eax, dword [ebp - 0x12c]
fadd qword [eax]
mov ecx, dword [ebp - 0x12c]
fstp qword [ecx]
mov byte [ebp - 0x79], 1
jmp 0x41da2c
movzx edx, byte [ebp - 0x79]
test edx, edx
je 0x41db24
push 0x457da0
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x50]
call fcn.0041df00
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x50]
call fcn.00415bc0
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
call fcn.0041f4e0
add esp, 0x14
jmp 0x41d85c
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
push ecx
call fcn.00431aba
add esp, 4
mov dword [ebp - 0x58], 0
lea edx, [ebp - 0x98]
push edx
mov ecx, dword [ebp - 0x108]
add ecx, 4
call fcn.00415bc0
jmp 0x41db73
lea ecx, [ebp - 0x98]
call fcn.0041df30
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x104]
push ecx
mov ecx, dword [ebp - 0x108]
add ecx, 4
call fcn.0041df00
push eax
lea ecx, [ebp - 0x98]
call fcn.00416040
movzx edx, al
test edx, edx
je 0x41dc1a
push 0
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041cf50
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x98]
call fcn.0041df50
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
call fcn.0041d420
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov ecx, dword [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0041cf50
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x9c], 0
lea eax, [ebp - 0x9c]
push eax
push 0x8004667e
lea ecx, [ebp - 0x98]
call fcn.0041df50
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
call fcn.0041d420
mov edx, dword [eax]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
jmp 0x41db5f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0041e070
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0041c960
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret