Function at 0x41d9d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c0c0
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.0041e0d0
add eax, 1
push eax
lea ecx, [ebp - 0x30]
call fcn.0041e2e0
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.00409710
jmp 0x41da66
lea ecx, [ebp - 0x60]
call fcn.0041e2a0
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.004096e0
push eax
lea ecx, [ebp - 0x60]
call fcn.0041d4a0
movzx edx, al
test edx, edx
je 0x41dad1
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.0041e4a0
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
call fcn.0041d7c0
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.0041d400
mov ecx, dword [ebp - 0x64]
mov dword [eax], ecx
jmp 0x41da55
mov ecx, dword [ebp - 0x108]
add ecx, 4
call fcn.0041e0d0
push eax
lea ecx, [ebp - 0x30]
call fcn.0041d400
mov edx, dword [ebp - 0x108]
mov ecx, dword [edx + 0x38]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x108]
call fcn.0041d840
fstp qword [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.0041e350
mov byte [ebp - 4], 1
lea edx, [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x108]
add ecx, 0x1c
call fcn.00409710
jmp 0x41db29
lea ecx, [ebp - 0x6c]
call fcn.0041e2c0
lea eax, [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0x108]
add ecx, 0x1c
call fcn.004096e0
push eax
lea ecx, [ebp - 0x6c]
call fcn.0041d4a0
movzx ecx, al
test ecx, ecx
je 0x41db98
lea ecx, [ebp - 0x6c]
call fcn.00416320
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.0041e4a0
fild dword [eax]
fadd qword [ebp - 0x14]
sub esp, 8
fstp qword [esp]
lea ecx, [ebp - 0xcc]
push ecx
call fcn.0041f840
add esp, 0x18
push eax
lea ecx, [ebp - 0x50]
call fcn.0041e420
jmp 0x41db21
push 0x457550
lea edx, [ebp - 0xd4]
push edx
lea ecx, [ebp - 0x50]
call fcn.004096e0
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.00409710
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
call fcn.0041f860
add esp, 0x14
mov dword [ebp - 0x18], 0x1002
push 0x1002
call fcn.004306b0
add esp, 4
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x38]
call fcn.0041d4d0
mov ecx, dword [ebp - 0x108]
movzx edx, byte [ecx + 0x34]
test edx, edx
jne 0x41dec9
mov ecx, dword [ebp - 0x108]
call fcn.0041d840
fstp qword [ebp - 0x74]
mov dword [ebp - 0x80], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0041e3e0
movzx eax, al
test eax, eax
jne 0x41dc9c
lea ecx, [ebp - 0x50]
call fcn.0041e400
fld qword [ebp - 0x74]
fcomp qword [eax]
fnstsw ax
test ah, 0x41
jp 0x41dc5b
lea ecx, [ebp - 0x50]
call fcn.0041e400
fld qword [eax]
fsub qword [ebp - 0x74]
fstp qword [ebp - 0x110]
jmp 0x41dc63
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.0041d400
push eax
mov ecx, dword [ebp - 0x108]
add ecx, 4
call fcn.0041e0d0
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 0x41dcdb
jmp 0x41dec9
cmp dword [ebp - 0x78], 0x102
je 0x41dda9
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x84], edx
jmp 0x41dd02
mov eax, dword [ebp - 0x84]
add eax, 1
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x108]
add ecx, 4
call fcn.0041e0d0
cmp dword [ebp - 0x84], eax
jge 0x41dda9
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.0041e0f0
mov ecx, dword [eax + 4]
call fcn.00457640
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jle 0x41dda4
mov ecx, dword [ebp - 0x84]
push ecx
mov ecx, dword [ebp - 0x108]
add ecx, 4
call fcn.0041e0f0
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 0x41dda4
jmp 0x41dda9
jmp 0x41dcf3
mov ecx, dword [ebp - 0x108]
call fcn.0041d840
fstp qword [ebp - 0x74]
mov byte [ebp - 0x79], 0
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x50]
call fcn.00409710
jmp 0x41ddd7
lea ecx, [ebp - 0x90]
call fcn.0041e4c0
lea ecx, [ebp - 0xe8]
push ecx
lea ecx, [ebp - 0x50]
call fcn.004096e0
push eax
lea ecx, [ebp - 0x90]
call fcn.0041d4a0
movzx edx, al
test edx, edx
je 0x41de83
lea ecx, [ebp - 0x90]
call fcn.0041e4a0
fld qword [ebp - 0x74]
fcomp qword [eax]
fnstsw ax
test ah, 1
jne 0x41de83
lea ecx, [ebp - 0x90]
call fcn.0041e4a0
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 0x41de4b
jmp 0x41de83
lea ecx, [ebp - 0x90]
call fcn.0041e4a0
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x90]
call fcn.0041e4a0
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 0x41ddcc
movzx edx, byte [ebp - 0x79]
test edx, edx
je 0x41dec4
push 0x457550
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x50]
call fcn.004096e0
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.00409710
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
call fcn.0041f860
add esp, 0x14
jmp 0x41dbfc
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
push ecx
call fcn.0043198a
add esp, 4
mov dword [ebp - 0x58], 0
lea edx, [ebp - 0x98]
push edx
mov ecx, dword [ebp - 0x108]
add ecx, 4
call fcn.00409710
jmp 0x41df13
lea ecx, [ebp - 0x98]
call fcn.0041e2a0
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.004096e0
push eax
lea ecx, [ebp - 0x98]
call fcn.0041d4a0
movzx edx, al
test edx, edx
je 0x41dfba
push 0
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041d400
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x98]
call fcn.0041e4a0
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
call fcn.0041d7c0
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.0041d400
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.0041e4a0
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
call fcn.0041d7c0
mov edx, dword [eax]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
jmp 0x41deff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0041e3c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00419110
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret