Function at 0x44a590
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push edi
mov edi, eax
mov eax, dword [esi + 0xa8]
xor ebx, ebx
or eax, dword [esi + 0xac]
jne 0x44a5c1
mov ecx, dword [esi + 0xb0]
or ecx, dword [esi + 0xb4]
jne 0x44a5c1
push 7
push esi
call fcn.004481c0
add esp, 8
mov ebp, 2
or dword [edi], ebp
cmp dword [esi + 0x154], ebx
jne 0x44a81b
cmp dword [esi + 0xc70], ebx
jne 0x44a5fa
mov edx, dword [esi + 0x8f8]
push edx
call dword [0x6f0020]
add esp, 4
mov dword [esi + 0xc70], eax
test eax, eax
je 0x44a75d
test byte [esi + 0x598], 4
mov eax, dword [esi + 0xc70]
mov dword [esi + 0x158], eax
jne 0x44a6fd
mov eax, dword [esi + 0x15c]
cmp dword [esi + 0x128], ebp
jne 0x44a687
cmp dword [eax + 0x1a0], ebp
jne 0x44a687
and dword [esi + 0x148], 0xfffffffd
lea ecx, [esp + 0x18]
push ecx
mov dword [esi + 0x128], 1
call fcn.00444630
mov edx, dword [eax]
mov dword [esi + 0x118], edx
mov ecx, dword [eax + 4]
mov dword [esi + 0x11c], ecx
mov edx, dword [eax + 8]
mov dword [esi + 0x120], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0x124], eax
and dword [edi], 0xfffffffd
mov eax, dword [esi + 0xa6c]
cdq
push 0
push edx
push eax
push esi
call fcn.004263c0
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x2c8]
test dword [ecx + 0x40], 0x40003
je 0x44a6a6
xor ebx, ebx
cmp dword [eax + 0x1a0], 1
sete bl
mov eax, dword [esi + 0x8f8]
lea edx, [esp + 0x10]
push edx
push eax
push edi
call fcn.00449770
add esp, 0xc
test eax, eax
jne 0x44a9a7
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x44a701
jg 0x44a710
and dword [esi + 0x148], 0xfffffffd
test byte [edi + 0x2a6], 1
je 0x44a9a5
push edi
call fcn.00449b60
add esp, 4
test eax, eax
je 0x44a9a5
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edi, dword [esp + 0x2c]
test byte [esi + 0x148], 0x20
jne 0x44a9a5
jmp 0x44a6d1
mov dword [esi + 0x154], ebp
test ebx, ebx
jne 0x44a7f3
test byte [esi + 0xa9c], 0x40
je 0x44a7f3
cmp dword [esi + 0xcb8], ebx
jne 0x44a769
mov ecx, dword [esi + 0x8f8]
add ecx, ecx
push ecx
call dword [0x6f0020]
add esp, 4
mov dword [esi + 0xcb8], eax
test eax, eax
jne 0x44a769
push str.Failed_to_alloc_scratch_buffer_
push esi
call fcn.00423270
add esp, 8
pop edi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x1c
ret
xor edi, edi
xor eax, eax
test ebp, ebp
jle 0x44a7d5
mov edx, dword [esi + 0x158]
mov cl, byte [edi + edx]
cmp cl, 0xa
jne 0x44a7c6
mov ecx, dword [esi + 0xcb8]
mov byte [eax + ecx], 0xd
mov edx, dword [esi + 0xcb8]
inc eax
mov byte [eax + edx], 0xa
test byte [esi + 0xa9c], 0x40
jne 0x44a7cf
mov ecx, dword [esi + 0xf58]
mov edx, dword [esi + 0xf5c]
mov ebx, ecx
and ebx, edx
cmp ebx, 0xffffffff
je 0x44a7cf
add ecx, 1
adc edx, 0
mov dword [esi + 0xf58], ecx
mov dword [esi + 0xf5c], edx
jmp 0x44a7cf
mov edx, dword [esi + 0xcb8]
mov byte [eax + edx], cl
inc edi
inc eax
cmp edi, ebp
jl 0x44a771
mov edi, dword [esp + 0x2c]
cmp eax, ebp
je 0x44a7f3
mov ecx, dword [esi + 0xcb8]
mov dword [esp + 0x10], eax
mov dword [esi + 0x158], ecx
mov dword [esi + 0x154], eax
mov edx, dword [edi + 0x2c8]
test dword [edx + 0x40], 0x30000
je 0x44a81f
mov eax, dword [esp + 0x10]
push eax
push edi
call fcn.0042eb30
add esp, 8
test eax, eax
je 0x44a81f
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edi, dword [esp + 0x2c]
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x158]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [edi + 0x2f0]
push edx
push eax
push ecx
push edi
call fcn.00422ea0
add esp, 0x14
test eax, eax
jne 0x44a9a7
mov edi, dword [edi + 0x2f0]
push eax
push eax
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0x4004747b
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x44a88a
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WSOCK32.dll_setsockopt]
test dword [esi + 0xa9c], 0x40000000
je 0x44a8ad
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0x158]
push edx
push eax
push 4
push esi
call fcn.00423090
add esp, 0x10
mov eax, dword [esp + 0xc]
cdq
add dword [esi + 0xb0], eax
adc dword [esi + 0xb4], edx
mov ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0xb0]
push ecx
push edx
push esi
call fcn.00448660
mov eax, dword [esi + 0x598]
add esp, 0xc
test al, 0x40
je 0x44a8e6
test eax, 0x100
je 0x44a919
mov ecx, dword [esi + 0xb0]
cmp ecx, dword [esi + 0xf58]
jne 0x44a919
mov edx, dword [esi + 0xb4]
cmp edx, dword [esi + 0xf5c]
jne 0x44a919
or eax, 4
push str.We_are_completely_uploaded_and_fine_n
push esi
mov dword [esi + 0x598], eax
call fcn.00423120
add esp, 8
mov eax, dword [esi + 0x154]
mov ecx, dword [esp + 0xc]
cmp eax, ecx
je 0x44a93e
add dword [esi + 0x158], ecx
pop edi
sub eax, ecx
pop ebp
mov dword [esi + 0x154], eax
xor eax, eax
pop ebx
add esp, 0x1c
ret
cmp dword [esi + 0xc70], 0
jne 0x44a965
mov eax, dword [esi + 0x8f8]
push eax
call dword [0x6f0020]
add esp, 4
mov dword [esi + 0xc70], eax
test eax, eax
je 0x44a75d
test byte [esi + 0x598], 4
mov ecx, dword [esi + 0xc70]
mov dword [esi + 0x158], ecx
mov dword [esi + 0x154], 0
je 0x44a9a5
mov eax, dword [esp + 0x2c]
and dword [esi + 0x148], 0xfffffffd
test byte [eax + 0x2a6], 1
je 0x44a9a5
push eax
call fcn.00449b60
add esp, 4
test eax, eax
jne 0x44a9a7
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret