Function at 0x10041df0
Capabilities:
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x1008ebd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
mov al, byte [esp + 7]
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], 0xffffffff
mov byte [esp + 0x1c], al
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0xbc]
mov dword [esp + 0xac], ebx
push ecx
push 1
push ebx
lea ecx, [esp + 0x28]
call fcn.100675d0
lea edx, [esp + 0x17]
lea ecx, [esp + 0x5c]
push edx
call fcn.100448f0
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xb4]
mov byte [esp + 0xac], 1
mov esi, dword [eax + 4]
mov ebp, dword [eax + 8]
cmp esi, ebp
je 0x10041ef2
lea edi, [esi + 0xc]
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x2c], esp
mov dword [eax], 0x10093a38
mov dword [eax + 4], 0x10093a34
mov ecx, dword [edi - 4]
lea edx, [eax + 0xc]
mov dword [eax + 8], ecx
mov ecx, edi
mov ebx, dword [ecx]
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebx, dword [ecx + 8]
mov dword [edx + 8], ebx
mov ecx, dword [ecx + 0xc]
mov dword [eax], 0x10093a20
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x60]
mov dword [eax + 4], 0x10093a1c
call fcn.1002c110
add esi, 0x1c
add edi, 0x1c
cmp esi, ebp
jne 0x10041e95
mov edi, dword [esp + 0x18]
xor ebx, ebx
mov eax, dword [esp + 0xc0]
cmp eax, 0x64
jb 0x10041f05
cmp eax, 0x3e8
jbe 0x10041f10
mov dword [esp + 0xc0], 0xc8
mov ebp, dword [esp + 0xb8]
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esp + 0x88]
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x20]
cmp esi, ebx
je 0x10041f8a
cmp eax, ebx
je 0x10041f50
mov ecx, dword [esp + 0x24]
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edx, 0x3b
jae 0x10041f82
lea eax, [esp + 0x44]
push ebp
push eax
mov ecx, edi
call fcn.100422d0
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x10041f7a
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
push 1
push edx
lea ecx, [esp + 0x28]
call fcn.100675d0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x10041fa4
xor ecx, ecx
jmp 0x10041fa9
cmp eax, ebx
je 0x10041f86
mov ecx, dword [esp + 0x24]
mov edx, ecx
sub edx, eax
and edx, 0xfffffffc
cmp edx, 4
je 0x1004209b
jmp 0x10041f82
sub ecx, eax
sar ecx, 2
mov edx, dword [esp + 0xc0]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, eax
cmp esi, ebx
je 0x1004214a
cmp esi, 1
jb 0x1004208e
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
cmp ecx, ebx
jne 0x10041fdd
xor eax, eax
jmp 0x10041fe4
mov eax, edx
sub eax, ecx
sar eax, 2
dec eax
cmp esi, eax
ja 0x1004208e
cmp ecx, ebx
je 0x10041ffa
sub edx, ecx
sar edx, 2
cmp edx, esi
ja 0x10042007
lea ecx, [esp + 0x1c]
call fcn.10043810
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx + esi*4]
mov ecx, edi
push esi
mov dword [esp + 0x1c], esi
call fcn.10042a50
test al, al
jne 0x100420dc
mov ecx, edi
call fcn.10043200
test al, al
jne 0x1004203e
mov eax, dword [esp + 0x18]
mov ecx, edi
push eax
push ebp
call fcn.10042d80
test al, al
jne 0x10041f17
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
cmp ecx, edx
je 0x10041f17
mov eax, dword [esp + 0x18]
cmp eax, dword [ecx]
je 0x10042062
add ecx, 4
cmp ecx, edx
jne 0x10042052
jmp 0x10041f17
lea eax, [ecx + 4]
cmp eax, edx
je 0x1004207b
sub ecx, eax
mov esi, dword [eax]
mov dword [ecx + eax], esi
add eax, 4
cmp eax, edx
jne 0x1004206b
mov edx, dword [esp + 0x24]
add edx, 0xfffffffc
mov dword [esp + 0xa0], edx
mov dword [esp + 0x24], edx
jmp 0x10041f17
cmp esi, 0x102
jne 0x10042105
jmp 0x10041f17
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x4e
push ecx
push str.F:SCVLibScvLIBIPv6HappyEyeballsConnectHelper.cpp
lea ecx, [esp + 0x38]
call fcn.10038570
push 0x100a8830
push 1
push eax
mov byte [esp + 0xb8], 2
call fcn.100386d0
add esp, 0xc
mov byte [esp + 0xac], 1
lea ecx, [esp + 0x30]
jmp 0x10042145
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [edi + 4]
call fcn.10043600
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x10]
cmp ecx, eax
je 0x1004214a
mov ebp, dword [eax + 0x10]
mov dword [eax + 0x10], 0xffffffff
jmp 0x1004214e
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x83
push ecx
push str.F:SCVLibScvLIBIPv6HappyEyeballsConnectHelper.cpp
lea ecx, [esp + 0x38]
call fcn.10038570
push esi
push 0x100a87fc
push 1
push eax
mov byte [esp + 0xbc], 3
call fcn.100386d0
add esp, 0x10
mov byte [esp + 0xac], 1
lea ecx, [esp + 0x30]
call fcn.100385c0
mov ebp, dword [esp + 0x2c]
push ebx
push ebx
push ebp
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], ebx
push edx
push 0x8004667e
push ebp
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, edi
call fcn.10042bf0
push ebp
call fcn.10046cd0
mov ecx, eax
call fcn.1004a2f0
mov eax, dword [esp + 0x8c]
mov byte [esp + 0xac], bl
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [esp + 0x88], ebx
je 0x1004229f
mov eax, dword [esp + 0x68]
push ebx
mov ecx, eax
add eax, 0x1c
mov dword [esp + 0x6c], eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x88]
dec eax
mov dword [esp + 0x88], eax
je 0x100421e1
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
cmp eax, ecx
jne 0x10042292
mov eax, dword [esp + 0x6c]
mov ecx, eax
add eax, 4
mov dword [esp + 0x6c], eax
mov ecx, dword [ecx]
push ecx
call fcn.10088e50
mov eax, dword [esp + 0x8c]
add esp, 4
cmp eax, ebx
jne 0x10042261
lea ecx, [esp + 0x90]
call fcn.1002d6f0
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x68], edx
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x60], eax
push edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], esi
call fcn.10088e50
add esp, 4
jmp 0x10042292
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [eax]
push eax
call fcn.1002d750
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
cmp dword [esp + 0x88], ebx
jne 0x100421ad
mov edx, dword [esp + 0x20]
push edx
call fcn.10088e50
mov ecx, dword [esp + 0xa8]
add esp, 4
mov eax, ebp
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 0x10