Function at 0x59f7a0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x817e96
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebp
mov ebp, dword [esp + 0x90]
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x159]
test al, al
jne 0x59f858
mov al, byte [esi + 0x158]
push ebp
test al, al
je 0x59f7c7
mov eax, dword [esi]
call dword [eax + 0xf8]
jmp 0x59f7d6
mov edx, dword [esi]
mov byte [esi + 0x158], 1
call dword [edx + 0xf4]
test al, al
mov byte [esi + 0x159], al
je 0x59fa51
mov eax, dword [esi + 0x15c]
lea ecx, [esi + 0x160]
push ecx
lea ecx, [esi + 0x288]
mov dword [esi + 0x284], eax
call fcn.004485e0
mov edx, dword [esi + 0x174]
mov dword [esi + 0x29c], edx
mov al, byte [esi + 0x178]
test al, al
je 0x59f858
mov eax, dword [esi + 0x17c]
mov edi, dword [esi + 0x1b0]
mov dword [esi + 0x2a0], eax
lea eax, [esi + 0x180]
push eax
lea ecx, [esi + 0x2a4]
call fcn.00479ba0
push 0xffffffffffffffff
lea ecx, [esi + 0x1a0]
push 0
push ecx
lea ecx, [esi + 0x2c0]
call fcn.00402e90
mov dword [esi + 0x2d0], edi
mov eax, dword [esi + 0x1dc]
lea edi, [esi + 0x1d0]
test eax, eax
mov ecx, edi
jle 0x59f871
call fcn.00693980
jmp 0x59f876
call fcn.00693480
test al, al
je 0x59fa51
cmp dword [esi + 0x1dc], 7
je 0x59f9bb
mov edx, dword [esi]
push edi
push ebp
mov ecx, esi
call dword [edx + pe_nt_image_headers32]
mov al, byte [esp + 0xf]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00404c40
mov edi, 0x90181c
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00404a50
test al, al
je 0x59f8ee
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, 0x90181c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.004049b0
mov al, byte [esp + 0xf]
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x94], 0
mov byte [esp + 0x28], al
call fcn.00404c40
mov edi, 0x9511f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x9511f8
lea ecx, [esp + 0x2c]
call fcn.004030a0
lea ecx, [esp + 0x24]
lea edx, [esp + 0x34]
push ecx
push str.channel_open_failure:
push edx
mov byte [esp + 0x9c], 1
call fcn.0044e080
add esp, 0xc
push eax
push 6
lea ecx, [esp + 0x4c]
mov byte [esp + 0x98], 2
call fcn.00479c70
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x94], 4
call fcn.00404c40
lea eax, [esp + 0x24]
lea ecx, [esp + 0x68]
push eax
mov dword [esp + 0x68], 2
call fcn.0042b6c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x90], 5
push ecx
lea ecx, [esp + 0x7c]
call fcn.0042b6c0
lea edx, [esp + 0x44]
push 0x89c1f4
push edx
mov dword [esp + 0x4c], vtable.SSH::ChannelOpenFailure.0
mov byte [esp + 0x98], 1
call fcn.007ac5c6
push 0x14
call fcn.007d7320
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
test edi, edi
mov dword [esp + 0x90], 6
je 0x59f9fa
mov ecx, edi
call fcn.00476d10
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], 1
mov dword [edi], vtable.CryptoPP::Redirector.1.0
mov dword [edi + 4], vtable.CryptoPP::Redirector.0
jmp 0x59f9fc
xor edi, edi
mov eax, dword [esi + 0x320]
lea ecx, [esi + 0x320]
push edi
mov dword [esp + 0x94], 0xffffffff
call dword [eax + 0xac]
lea eax, [esi + 0x400]
push 1
mov dword [esi + 0x56c], eax
mov dword [esi + 0x564], eax
mov ecx, dword [esi + 0x314]
push 0x911e54
push 1
push 6
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x104]
mov al, 1
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x88
ret 8