Function at 0x14003dd80
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rsi
lea rbp, [rsp - 0x6f8]
sub rsp, 0x7f8
mov rax, qword [0x1401b5030]
xor rax, rsp
mov qword [rbp + 0x6d0], rax
mov rsi, rcx
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x38]
mov r8d, InitCommonControls
movsxd rax, dword [rcx + 0x4d54]
sub r8d, eax
add rdx, rax
call fcn.140025ac0
movzx eax, byte [rsp + 0x39]
add eax, 0xfffffffe
cmp eax, 0xf
ja case.default.0x14003de13
mov qword [rsp + 0x818], rbx
lea rdx, [0x140000000]
mov qword [rsp + 0x820], rdi
mov qword [rsp + 0x7f0], r12
mov qword [rsp + 0x7e8], r14
cdqe
mov qword [rsp + 0x7e0], r15
mov ecx, dword [rdx + rax*4 + 0x3e88c]
add rcx, rdx
jmp rcx
movzx ecx, word [rsp + 0x3a]
lea eax, [rcx - 1]
cmp eax, 2
ja case.0x14003de13.3
mov dword [rsi + 0xb54], ecx
jmp case.0x14003de13.3
movzx ecx, word [rsp + 0x3a]
xor r12d, r12d
sub ecx, 1
je 0x14003df2f
sub ecx, 1
je 0x14003df4e
cmp ecx, 1
je 0x14003deee
cmp byte [rsi + 0x8ac], r12b
je case.0x14003de13.3
mov rcx, qword [rsi + 0x40]
mov edx, 0x427
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, qword [rsi + 0x40]
mov edx, 0x428
mov rdi, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r8d, dword [rsi + 0x8a8]
lea r9, [0x1402bcd10]
lea rdx, str.____d__s
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14003c1f0
mov rcx, qword [rsi + 0x40]
lea r8, [rsp + 0x50]
mov edx, 0x431
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.14003f390
mov rdx, qword [rsi + 0x40]
mov rcx, rsi
mov byte [rsi + 0x8ac], r12b
call fcn.1400472f0
mov rdx, qword [rsi + 0x40]
mov rcx, rsi
call fcn.1400471c0
mov byte [rsi + 0x70], r12b
jmp case.0x14003de13.3
mov ecx, dword [rsp + 0x40]
mov r8d, ecx
mov rdx, qword [rsi + 0x40]
mov eax, ecx
shr eax, 0x10
and r8d, 0xff0000
or r8d, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr r8d, 8
shl eax, 8
mov rcx, rsi
or r8d, eax
call fcn.1400402a0
mov byte [rsi + 0x70], r12b
jmp case.0x14003de13.3
cmp dword [rsi + 0xb84], 1
jne 0x14003df4e
lea rdx, str.Folder_unzipped.
mov rcx, rsi
call fcn.140040bf0
mov dword [rsi + 0xb84], r12d
mov ecx, dword [rsp + 0x40]
mov ebx, ecx
mov r14, qword [rsi + 0x40]
and ebx, 0xff0000
mov eax, ecx
shr eax, 0x10
or ebx, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr ebx, 8
shl eax, 8
cmp byte [rsi + 0x8ac], r12b
jne 0x14003e05a
or ebx, eax
jne 0x14003dfb1
lea rdx, [0x1402bd190]
lea rcx, [rsp + 0x50]
call fcn.14003c1f0
lea r8, [rsp + 0x50]
mov edx, 0x431
mov rcx, r14
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
jmp case.0x14003de13.3
cmp ebx, 1
jbe 0x14003e00f
cmp dword [rsi + 0xb54], 1
je 0x14003e00f
lea eax, [rbx + 1]
cmp eax, 0x104
ja case.0x14003de13.3
mov rcx, qword [rsi + 0x38]
lea rdx, [rbp - 0x30]
mov r8d, ebx
call fcn.140025ac0
mov r9d, ebx
mov byte [rbp + rbx - 0x30], r12b
lea r8, str.Read_a__d_byte_string_n
mov edx, 0xa
lea rcx, vtable.Log.0
call fcn.1400153f0
lea r8, [rbp - 0x30]
mov edx, 0x411
mov rcx, r14
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
lea rdx, [0x1402bc9d0]
lea rcx, [rsp + 0x50]
call fcn.14003c1f0
lea r8, [rsp + 0x50]
mov edx, 0x431
mov rcx, r14
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
lea rcx, [rsi + 0x768]
xor edx, edx
mov r8d, 0x140
call fcn.14011fff0
mov dword [rsi + 0x8a8], r12d
mov byte [rsi + 0x8ac], 1
jmp 0x14003e102
or ebx, eax
lea eax, [rbx + 1]
cmp eax, 0x144
ja case.0x14003de13.3
test ebx, ebx
je 0x14003e081
mov rcx, qword [rsi + 0x38]
lea rdx, [rsi + 0x8ad]
mov r8d, ebx
call fcn.140025ac0
mov r9d, ebx
mov byte [rbx + rsi + 0x8ad], r12b
lea r8, str.Read_a__d_byte_string_n
mov edx, 0xa
lea rcx, vtable.Log.0
call fcn.1400153f0
xor edx, edx
lea rcx, [rsi + 0x768]
mov r8d, 0x140
call fcn.14011fff0
mov r8d, ebx
lea rdx, [rsi + 0x8ad]
lea rcx, [rsi + 0x768]
call fcn.14011fbe0
lea r9, [rsi + 0x768]
mov r8d, 0x428
mov rdx, r14
call fcn.14003f150
inc dword [rsi + 0x8a8]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.14003dd00
test al, al
je case.0x14003de13.3
cmp dword [rsi + 0xb54], 1
jne case.0x14003de13.3
mov rax, qword [rsi + 0x38]
cmp byte [rax + 0x4d60], r12b
je case.0x14003de13.3
cmp byte [rax + 0x4d61], r12b
jne case.0x14003de13.3
mov rcx, rsi
mov dword [rax + 0x4d54], r12d
call fcn.14003dd80
jmp case.0x14003de13.3
cmp byte [rsi + 0xb88], 0
je case.0x14003de13.3
mov ecx, dword [rsp + 0x40]
lea rdx, str.File__d__d
inc dword [rsi + 0x6c]
mov edi, ecx
mov r9d, dword [rsi + 0x68]
mov eax, ecx
mov r8d, dword [rsi + 0x6c]
and edi, 0xff0000
shr eax, 0x10
or edi, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edi, 8
mov ecx, dword [rsp + 0x3c]
mov ebx, ecx
shl eax, 8
and ebx, 0xff0000
or edi, eax
mov eax, ecx
shr eax, 0x10
or ebx, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr ebx, 8
shl eax, 8
lea rcx, [rsp + 0x50]
or ebx, eax
call fcn.14003c250
mov rcx, qword [rsi + 0x40]
lea r8, [rsp + 0x50]
mov edx, 0x433
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov r8d, edi
mov edx, ebx
mov rcx, rsi
call fcn.140040fe0
test al, al
jne 0x14003e1e5
mov rcx, rsi
call fcn.14003eab0
mov byte [rsi + 0xb88], 0
jmp case.0x14003de13.3
mov ecx, dword [rsp + 0x40]
mov ebx, ecx
mov eax, ecx
and ebx, 0xff0000
shr eax, 0x10
or ebx, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr ebx, 8
shl eax, 8
or ebx, eax
lea eax, [rbx + 1]
mov ecx, eax
mov edi, eax
call fcn.14011b4c0
mov qword [rsi + 0x758], rax
test rax, rax
je 0x14003e256
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.14011fff0
mov rdx, qword [rsi + 0x758]
mov r8d, ebx
mov rcx, qword [rsi + 0x38]
call fcn.140025ac0
mov dword [rsi + 0x764], ebx
mov rcx, qword [rsi + 0x38]
lea r9, [rsp + 0x30]
mov r8d, 0x1006
mov dword [rsp + 0x20], 4
mov rax, qword [rcx + 0xd748]
mov rcx, qword [rcx + 0x748]
imul edx, dword [rax + 0x7f8], 0x3e8
mov dword [rsp + 0x30], edx
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
jmp case.0x14003de13.3
cmp byte [rsi + 0xb89], 0
je case.0x14003de13.3
mov ecx, dword [rsp + 0x40]
mov r8d, ecx
mov eax, ecx
and r8d, 0xff0000
shr eax, 0x10
or r8d, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr r8d, 8
mov ecx, dword [rsp + 0x3c]
mov edx, ecx
shl eax, 8
and edx, 0xff0000
or r8d, eax
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edx, 8
shl eax, 8
mov rcx, rsi
or edx, eax
call fcn.14003ed00
mov byte [rsi + 0xb89], 0
jmp case.0x14003de13.3
movzx ecx, word [rsp + 0x3a]
sub ecx, 4
je 0x14003e5ca
sub ecx, 3
je 0x14003e49a
cmp ecx, 1
jne case.0x14003de13.3
mov ecx, dword [rsp + 0x40]
mov edi, ecx
mov eax, ecx
and edi, 0xff0000
shr eax, 0x10
or edi, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edi, 8
mov ecx, dword [rsp + 0x3c]
mov r14d, ecx
shl eax, 8
and r14d, 0xff0000
or edi, eax
mov eax, ecx
shr eax, 0x10
or r14d, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr r14d, 8
shl eax, 8
or r14d, eax
lea eax, [rdi - 1]
cmp eax, 0x207
ja 0x14003e6fe
lea eax, [rdi + 1]
mov ecx, eax
mov r15d, eax
call fcn.14011b4c0
mov rbx, rax
test rax, rax
je 0x14003e6fe
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.14011fff0
mov rcx, qword [rsi + 0x38]
mov r8d, edi
mov rdx, rbx
call fcn.140025ac0
mov edx, 0x2a
mov byte [rdi + rbx], 0
mov rcx, rbx
call fcn.14012bfe8
mov rdi, rax
test rax, rax
jne 0x14003e429
lea r9, str.selected_file
lea rcx, [rbp + 0x1e0]
lea rax, [0x1402bda90]
lea rdx, str.__s____s____s
mov qword [rsp + 0x20], rax
lea r8, [0x1402bce90]
call fcn.140047f40
lea rdx, [rbp + 0x1e0]
mov rcx, rsi
call fcn.140040bf0
mov rcx, rbx
call fcn.14011b120
mov byte [rsi + 0x70], 0
jmp case.0x14003de13.3
lea r8, [rax + 1]
mov edx, 0x209
lea rcx, [rbp + 0x4c0]
call fcn.14012209c
mov r8, rbx
mov byte [rdi], 0
mov edx, 0x209
lea rcx, [rbp - 0x30]
call fcn.14012209c
lea r9, [rbp - 0x30]
lea rcx, [rbp + 0x1e0]
cmp r14d, 0xffffffff
je 0x14003e3ea
lea rax, [rbp + 0x4c0]
mov qword [rsp + 0x28], rax
lea r8, [0x1402bd850]
lea rax, [0x1402bd5d0]
lea rdx, str.__s____s____s____s__
mov qword [rsp + 0x20], rax
call fcn.140047f40
lea rdx, [rbp + 0x1e0]
jmp 0x14003e6b8
mov ecx, dword [rsp + 0x40]
mov edi, ecx
mov eax, ecx
and edi, 0xff0000
shr eax, 0x10
or edi, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edi, 8
mov ecx, dword [rsp + 0x3c]
mov r14d, ecx
shl eax, 8
and r14d, 0xff0000
or edi, eax
mov eax, ecx
shr eax, 0x10
or r14d, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr r14d, 8
lea r15d, [rdi + 1]
shl eax, 8
mov ecx, r15d
or r14d, eax
mov r12d, r15d
call fcn.14011b4c0
mov rbx, rax
test rax, rax
je 0x14003e6fe
mov r8d, r12d
xor edx, edx
mov rcx, rax
call fcn.14011fff0
mov rcx, qword [rsi + 0x38]
mov r8d, edi
mov rdx, rbx
call fcn.140025ac0
cmp edi, 0x104
jbe 0x14003e535
mov byte [rbx + 0x104], 0
jmp 0x14003e539
mov byte [rdi + rbx], 0
mov r8d, r15d
mov rdx, rbx
call fcn.1400430c0
lea rdx, str._s____s____s
mov r9, rbx
cmp r14d, 0xffffffff
jne 0x14003e586
test al, al
lea rcx, [0x1402bca10]
lea rax, [0x1402bda90]
lea r8, [0x1402bcbd0]
mov qword [rsp + 0x20], rax
cmovne r8, rcx
lea rcx, [rbp - 0x30]
call fcn.140047d60
lea rdx, [rbp - 0x30]
jmp 0x14003e410
test al, al
lea rcx, [0x1402bce10]
lea rax, [0x1402bcb90]
lea r8, [0x1402bd690]
mov qword [rsp + 0x20], rax
cmovne r8, rcx
lea rcx, [rbp - 0x30]
call fcn.140047d60
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.140040bf0
sub dword [rsi + 0x4c], 1
jne 0x14003e6f6
jmp 0x14003e6c0
mov ecx, dword [rsp + 0x40]
mov edi, ecx
mov eax, ecx
and edi, 0xff0000
shr eax, 0x10
or edi, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edi, 8
mov ecx, dword [rsp + 0x3c]
mov r14d, ecx
shl eax, 8
and r14d, 0xff0000
or edi, eax
mov eax, ecx
shr eax, 0x10
or r14d, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr r14d, 8
shl eax, 8
or r14d, eax
lea eax, [rdi + 1]
mov ecx, eax
mov r15d, eax
call fcn.14011b4c0
mov rbx, rax
test rax, rax
je 0x14003e6fe
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.14011fff0
mov rcx, qword [rsi + 0x38]
mov r8d, edi
mov rdx, rbx
call fcn.140025ac0
cmp edi, 0x104
jbe 0x14003e663
mov byte [rbx + 0x104], 0
jmp 0x14003e667
mov byte [rdi + rbx], 0
lea rdx, str._s____s____s
mov r9, rbx
lea rcx, [rbp - 0x30]
cmp r14d, 0xffffffff
jne 0x14003e69c
lea rax, [0x1402bda90]
lea r8, [0x1402bdcd0]
mov qword [rsp + 0x20], rax
call fcn.140047d60
lea rdx, [rbp - 0x30]
jmp 0x14003e410
lea rax, [0x1402bd390]
lea r8, [0x1402bce10]
mov qword [rsp + 0x20], rax
call fcn.140047d60
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.140040bf0
mov rcx, qword [rsi + 0x40]
mov edx, 0x428
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0x1009
call qword [sym.imp.USER32.dll_SendMessageA]
mov rdx, qword [rsi + 0x40]
lea r8, [0x14019581a]
mov rcx, rsi
call fcn.14003fd50
mov rcx, rbx
call fcn.14011b120
mov byte [rsi + 0x70], 0
jmp case.0x14003de13.3
mov rcx, qword [rsi + 0x38]
lea r9, [rsp + 0x30]
mov r8d, 0x1006
mov dword [rsp + 0x20], 4
mov rax, qword [rcx + 0xd748]
mov rcx, qword [rcx + 0x748]
imul edx, dword [rax + 0x7f8], 0x3e8
mov dword [rsp + 0x30], edx
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [rsp + 0x3c]
mov r8d, ecx
mov eax, ecx
and r8d, 0xff0000
shr eax, 0x10
or r8d, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr r8d, 8
mov ecx, dword [rsp + 0x40]
mov edx, ecx
shl eax, 8
and edx, 0xff0000
or r8d, eax
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edx, 8
shl eax, 8
mov rcx, rsi
or edx, eax
call fcn.1400418d0
mov rcx, qword [rsi + 0x38]
mov rax, qword [rcx + 0xd748]
cmp dword [rax + 0x7fc], 0
jle case.0x14003de13.3
mov rcx, qword [rcx + 0x12b8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8007
call qword [sym.imp.USER32.dll_PostMessageA]
jmp case.0x14003de13.3
cmp byte [rsi + 0xb3d], 0
je 0x14003e7ec
mov byte [rsi + 0xb3e], 1
mov rcx, rsi
call fcn.140041b60
jmp case.0x14003de13.3
mov rcx, qword [rsi + 0x40]
mov edx, 0x476
mov dword [rsi + 0xb54], 1
mov dword [rsi + 0xb58], 0x1000
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [rsp + 0x3c]
mov eax, ecx
shr eax, 0x10
mov edx, ecx
and edx, 0xff0000
or edx, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edx, 8
shl eax, 8
mov rcx, rsi
or edx, eax
call fcn.14003e930
mov r14, qword [rsp + 0x7e8]
mov r12, qword [rsp + 0x7f0]
mov rdi, qword [rsp + 0x820]
mov rbx, qword [rsp + 0x818]
mov r15, qword [rsp + 0x7e0]
mov rcx, qword [rbp + 0x6d0]
xor rcx, rsp
call fcn.14011b0c0
add rsp, 0x7f8
pop rsi
pop rbp
ret