Function at 0x44f300
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
push ebx
push ebp
push edi
mov edi, eax
mov eax, dword [esi + 0x90]
xor ebx, ebx
or eax, dword [esi + 0x94]
jne 0x44f336
mov ecx, dword [esi + 0x98]
or ecx, dword [esi + 0x9c]
jne 0x44f336
push 7
lea edx, [esp + 0x18]
push esi
push edx
call fcn.0044cf00
add esp, 0xc
mov ebp, 2
or dword [edi], ebp
cmp dword [esi + 0x12c], ebx
jne 0x44f591
cmp dword [esi + 0xa20], ebx
jne 0x44f36f
mov eax, dword [esi + 0x544]
push eax
call dword [0x7c6020]
add esp, 4
mov dword [esi + 0xa20], eax
test eax, eax
je 0x44f4cf
mov ecx, dword [esi + 0xa20]
mov dword [esi + 0x130], ecx
cmp dword [esi + 0x144], ebx
jne 0x44f443
mov eax, dword [esi + 0x134]
cmp dword [esi + 0x108], ebp
jne 0x44f3fb
cmp dword [eax + 0x1a0], ebp
jne 0x44f3fb
and dword [esi + 0xf4], 0xfffffffd
lea edx, [esp + 0x14]
push edx
mov dword [esi + 0x108], 1
call fcn.0044a8a0
mov ecx, dword [eax]
mov dword [esi + 0xf8], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0xfc], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x100], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x104], edx
and dword [edi], 0xfffffffd
mov eax, dword [esi + 0x724]
cdq
push 0
push edx
push eax
push esi
call fcn.00429380
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x330]
test dword [edx + 0x44], 0x40003
je 0x44f41a
xor ebx, ebx
cmp dword [eax + 0x1a0], 1
sete bl
mov ecx, dword [esi + 0x544]
lea eax, [esp + 0x10]
push eax
push ecx
push esi
call fcn.0044e5d0
add esp, 0xc
test eax, eax
jne 0x44f782
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x44f452
test byte [esi + 0xf4], 0x20
jne 0x44f780
jmp 0x44f454
jg 0x44f483
mov eax, dword [esi + 0xc]
and dword [esi + 0xf4], 0xfffffffd
cmp dword [eax + 0x2c4], 0
je 0x44f780
push esi
call fcn.0044e990
add esp, 4
test eax, eax
je 0x44f780
pop edi
pop ebp
pop ebx
add esp, 0x18
ret
mov dword [esi + 0x12c], ebp
test ebx, ebx
jne 0x44f568
cmp dword [esi + 0x76c], ebx
je 0x44f568
cmp dword [esi + 0xa88], ebx
jne 0x44f4db
mov edx, dword [esi + 0x544]
add edx, edx
push edx
call dword [0x7c6020]
add esp, 4
mov dword [esi + 0xa88], eax
test eax, eax
jne 0x44f4db
push str.Failed_to_alloc_scratch_buffer_
push esi
call fcn.0042c1c0
add esp, 8
pop edi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x18
ret
xor edi, edi
xor eax, eax
test ebp, ebp
jle 0x44f54e
jmp 0x44f4f0
mov ecx, dword [esi + 0x130]
mov cl, byte [edi + ecx]
mov edx, dword [esi + 0xa88]
cmp cl, 0xa
jne 0x44f545
mov byte [eax + edx], 0xd
mov ecx, dword [esi + 0xa88]
inc eax
mov byte [eax + ecx], 0xa
cmp dword [esi + 0x76c], 0
jne 0x44f548
mov ecx, dword [esi + 0xda8]
mov edx, dword [esi + 0xdac]
mov ebx, ecx
and ebx, edx
cmp ebx, 0xffffffff
je 0x44f548
add ecx, 1
adc edx, 0
mov dword [esi + 0xda8], ecx
mov dword [esi + 0xdac], edx
jmp 0x44f548
mov byte [eax + edx], cl
inc edi
inc eax
cmp edi, ebp
jl 0x44f4f0
cmp eax, ebp
je 0x44f568
mov ecx, dword [esi + 0xa88]
mov dword [esp + 0x10], eax
mov dword [esi + 0x130], ecx
mov dword [esi + 0x12c], eax
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x330]
test dword [eax + 0x44], 0x30000
je 0x44f591
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.0043d200
add esp, 8
test eax, eax
jne 0x44f782
mov eax, dword [esi + 0x12c]
mov ecx, dword [esi + 0x130]
mov edi, dword [esp + 0x28]
lea edx, [esp + 0xc]
push edx
mov edx, dword [edi + 0x34c]
push eax
push ecx
push edx
push esi
call fcn.0042bef0
add esp, 0x14
test eax, eax
jne 0x44f782
mov edi, dword [edi + 0x34c]
push eax
push eax
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0x4004747b
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x44f600
push 4
lea edx, [esp + 0x14]
push edx
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov edi, dword [esi + 0xb0]
mov ecx, dword [esi + 0xb4]
mov eax, edi
or eax, ecx
je 0x44f665
mov eax, dword [esp + 0xc]
cdq
cmp ecx, edx
jg 0x44f629
jl 0x44f621
cmp edi, eax
jae 0x44f629
mov ebp, edi
mov dword [esp + 0x18], ecx
jmp 0x44f62f
mov ebp, eax
mov dword [esp + 0x18], edx
mov ecx, dword [esi + 0x130]
push ebp
push ecx
push 2
push esi
call fcn.0042c0a0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
add esp, 0x10
sub dword [esi + 0xb0], ebp
mov eax, ecx
sbb dword [esi + 0xb4], edx
cdq
mov edi, eax
mov ebx, edx
sub edi, ebp
sbb ebx, dword [esp + 0x18]
jmp 0x44f670
mov ecx, dword [esp + 0xc]
mov eax, ecx
cdq
mov edi, eax
mov ebx, edx
mov eax, edi
or eax, ebx
je 0x44f6af
sub ecx, edi
add ecx, dword [esi + 0x130]
push edi
push ecx
push 4
push esi
call fcn.0042c0a0
add dword [esi + 0x98], edi
mov edx, dword [esi + 0x98]
adc dword [esi + 0x9c], ebx
mov ecx, dword [esi + 0x9c]
push ecx
push edx
push esi
call fcn.0044d3c0
mov ecx, dword [esp + 0x28]
add esp, 0x1c
cmp dword [esi + 0x154], 0
je 0x44f6c1
cmp dword [esi + 0x15c], 0
je 0x44f6f9
mov eax, dword [esi + 0x98]
cmp eax, dword [esi + 0xda8]
jne 0x44f6f9
mov edx, dword [esi + 0x9c]
cmp edx, dword [esi + 0xdac]
jne 0x44f6f9
push str.We_are_completely_uploaded_and_fine
push esi
mov dword [esi + 0x144], 1
call fcn.0042c140
mov ecx, dword [esp + 0x14]
add esp, 8
mov eax, dword [esi + 0x12c]
cmp eax, ecx
je 0x44f71a
add dword [esi + 0x130], ecx
pop edi
sub eax, ecx
pop ebp
mov dword [esi + 0x12c], eax
xor eax, eax
pop ebx
add esp, 0x18
ret
cmp dword [esi + 0xa20], 0
jne 0x44f741
mov eax, dword [esi + 0x544]
push eax
call dword [0x7c6020]
add esp, 4
mov dword [esi + 0xa20], eax
test eax, eax
je 0x44f4cf
cmp dword [esi + 0x144], 0
mov ecx, dword [esi + 0xa20]
mov dword [esi + 0x130], ecx
mov dword [esi + 0x12c], 0
je 0x44f780
mov eax, dword [esi + 0xc]
and dword [esi + 0xf4], 0xfffffffd
cmp dword [eax + 0x2c4], 0
je 0x44f780
push esi
call fcn.0044e990
add esp, 4
test eax, eax
jne 0x44f782
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x18
ret