Function at 0x41d690
Capabilities:
Set socket configuration

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x25c
mov eax, dword [esp + 0x270]
test eax, eax
je 0x41d892
mov eax, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea ebp, [esp + 0x14c]
mov dword [esp], ebx
mov dword [esp + 0x14c], 1
mov dword [esp + 8], ebp
mov dword [esp + 4], 0x8004667e
mov dword [esp + 0x2c], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x41d7d0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.libassuan_0.dll_assuan_sock_connect
test eax, eax
je 0x41d910
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
mov esi, eax
test eax, eax
je 0x41d8b5
mov edx, dword [0x490b20]
movzx esi, ax
shl edx, 0x18
and edx, 0x7f000000
or esi, edx
movzx eax, si
cmp eax, 0x802e
je 0x41d736
cmp eax, 0x8006
jne 0x41d8b5
mov edx, 0x10624dd3
mov dword [esp + 0x4c], ebx
lea esi, [esp + 0x48]
mov edi, ebp
mov eax, edx
mul dword [esp + 0x270]
mov eax, dword [esp + 0x270]
mov dword [esp + 0x48], 1
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x14c]
lea esi, [esp + 0x48]
mov dword [esp + 0xc], 0
shr edx, 6
mov dword [esp + 8], edi
mov dword [esp + 0x40], edx
imul edx, edx, 0x3e8
mov dword [esp + 4], esi
sub eax, edx
imul eax, eax, 0x3e8
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x10], eax
lea eax, [ebx + 1]
mov dword [esp], eax
call sub.libnpth_0.dll_npth_select
test eax, eax
js 0x41da12
jne 0x41d940
mov esi, dword [0x490b20]
shl esi, 0x18
and esi, 0x7f000000
or esi, 0x8084
jmp 0x41d841
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
je 0x41da31
jle 0x41d850
cmp eax, 0x274c
je 0x41d9e0
jg 0x41d810
mov edx, 0x804d
cmp eax, 0x2747
je 0x41d830
xor edx, edx
cmp eax, 0x2748
sete dl
add edx, 0x8031
jmp 0x41d830
mov edx, 0x8019
cmp eax, 0x274d
je 0x41d830
cmp eax, 0x276d
mov esi, 0x805e
mov edx, 0x8031
cmove edx, esi
nop
mov esi, dword [0x490b20]
shl esi, 0x18
and esi, 0x7f000000
or esi, edx
add esp, 0x25c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 0x8006
cmp eax, 0x2733
je 0x41d830
jle 0x41d880
mov edx, 0x8007
cmp eax, 0x2735
je 0x41d830
xor edx, edx
cmp eax, 0x2736
setne dl
add edx, 0x8030
jmp 0x41d830
cmp eax, 0x6d
mov esi, 0x806d
mov edx, 0x8031
cmove edx, esi
jmp 0x41d830
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], ebx
call sub.libassuan_0.dll_assuan_sock_connect
test eax, eax
jne 0x41d8e5
xor esi, esi
add esp, 0x25c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14c], 0
mov dword [esp + 8], ebp
mov dword [esp], ebx
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 0x8004667e
call eax
mov eax, esi
sub esp, 0xc
add esp, 0x25c
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
test eax, eax
je 0x41d8a6
mov esi, dword [0x490b20]
movzx eax, ax
shl esi, 0x18
and esi, 0x7f000000
or esi, eax
jmp 0x41d841
mov dword [esp + 8], ebp
mov eax, dword [esp + 0x2c]
xor esi, esi
mov dword [esp + 0x14c], 0
mov dword [esp + 4], 0x8004667e
mov dword [esp], ebx
call eax
sub esp, 0xc
jmp 0x41d8a8
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
jne 0x41d980
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
jne 0x41d980
mov esi, dword [0x490b20]
shl esi, 0x18
and esi, 0x7f000000
or esi, 0x29a
jmp 0x41d841
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1007
mov dword [esp + 4], 0xffff
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_getsockopt]
sub esp, 0x14
test eax, eax
js 0x41da40
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x41d9f0
xor esi, esi
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
mov dword [esp + 8], eax
jmp 0x41d8c4
mov edx, 0x8084
jmp 0x41d830
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpg_err_code_from_errno
test eax, eax
je 0x41d9c4
mov esi, dword [0x490b20]
movzx eax, ax
shl esi, 0x18
and esi, 0x7f000000
or esi, eax
jmp 0x41d9c6
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
mov esi, eax
mov eax, dword [0x490b20]
test esi, esi
je 0x41d9c6
shl eax, 0x18
movzx esi, si
and eax, 0x7f000000
or esi, eax
jmp 0x41d9c6
mov edx, 0x8043
jmp 0x41d830
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
test eax, eax
jne 0x41d9fc
jmp 0x41d9c4