Function at 0x4244b0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
xor bl, bl
push edi
mov eax, dword [esi + 0xb0]
or eax, dword [esi + 0xb4]
jne 0x4244e4
mov eax, dword [esi + 0xb8]
or eax, dword [esi + 0xbc]
jne 0x4244e4
push 7
push esi
call fcn.0042ace0
add esp, 8
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
or dword [edi], 2
cmp dword [esi + 0x164], 0
jne 0x4246ee
mov eax, dword [esi + 0xd08]
test eax, eax
jne 0x424523
push dword [esi + 0x924]
call dword [section..data]
add esp, 4
mov dword [esi + 0xd08], eax
test eax, eax
je 0x424627
cmp byte [esi + 0x158], 0
mov dword [esi + 0x168], eax
jne 0x4247eb
cmp dword [esi + 0x130], 2
mov ecx, dword [esi + 0x170]
jne 0x424594
cmp dword [ecx + 0x1b0], 2
jne 0x424594
and dword [esi + 0x154], 0xfffffffd
lea eax, [esp + 0x14]
push eax
mov dword [esi + 0x130], 1
call fcn.004248a0
push 0
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x120], xmm0
and dword [edi], 0xfffffffd
mov eax, dword [esi + 0xae0]
cdq
push edx
push eax
push esi
call fcn.0040e670
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [ebp + 0x2c8]
test dword [eax + 0x40], 0x40003
je 0x4245ad
cmp dword [ecx + 0x1b0], 1
sete bl
lea eax, [esp + 0x28]
push eax
push dword [esi + 0x924]
push ebp
call fcn.00422ad0
add esp, 0xc
test eax, eax
jne 0x424895
mov edx, dword [esp + 0x28]
test edx, edx
je 0x4247eb
jle 0x4247f8
mov dword [esi + 0x164], edx
test bl, bl
jne 0x4246cd
cmp byte [esi + 0x822], bl
je 0x4246cd
cmp dword [esi + 0xd54], eax
jne 0x424634
mov eax, dword [esi + 0x924]
add eax, eax
push eax
call dword [section..data]
add esp, 4
mov dword [esi + 0xd54], eax
test eax, eax
jne 0x424634
push str.Failed_to_alloc_scratch_buffer_
push esi
call fcn.0041d7c0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x14
ret
xor ecx, ecx
xor edx, edx
cmp dword [esp + 0x28], ecx
jle 0x4246b1
mov ebp, dword [esp + 0x28]
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esi + 0x168]
mov bl, byte [edx + eax]
mov eax, dword [esi + 0xd54]
cmp bl, 0xa
jne 0x4246a4
mov byte [eax + ecx], 0xd
inc ecx
mov eax, dword [esi + 0xd54]
mov byte [ecx + eax], bl
cmp byte [esi + 0x822], 0
jne 0x4246a7
mov edi, dword [esi + 0x1048]
mov eax, edi
mov ebx, dword [esi + 0x104c]
and eax, ebx
cmp eax, 0xffffffff
je 0x4246a7
add edi, 1
mov dword [esi + 0x1048], edi
adc ebx, 0
mov dword [esi + 0x104c], ebx
jmp 0x4246a7
mov byte [eax + ecx], bl
inc edx
inc ecx
cmp edx, ebp
jl 0x424650
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
cmp ecx, edx
je 0x4246cd
mov eax, dword [esi + 0xd54]
mov edx, ecx
mov dword [esi + 0x168], eax
mov dword [esi + 0x164], ecx
mov eax, dword [ebp + 0x2c8]
test dword [eax + 0x40], 0x30000
je 0x4246ee
push edx
push ebp
call fcn.0043b470
add esp, 8
test eax, eax
jne 0x424895
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x164]
push dword [esi + 0x168]
push dword [ebp + 0x2f0]
push ebp
call fcn.0041de70
add esp, 0x14
test eax, eax
jne 0x424895
mov edi, dword [ebp + 0x2f0]
push eax
push eax
lea eax, [esp + 0x38]
push eax
push 4
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0x4004747b
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x424756
push 4
lea eax, [esp + 0x2c]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp byte [esi + 0x968], 0
je 0x424774
push dword [esp + 0x10]
push dword [esi + 0x168]
push 4
push esi
call fcn.0041d730
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov eax, ecx
cdq
add eax, dword [esi + 0xb8]
mov dword [esi + 0xb8], eax
adc edx, dword [esi + 0xbc]
cmp byte [esi + 0x16d], 0
mov dword [esi + 0xbc], edx
je 0x4247a5
cmp byte [esi + 0x16f], 0
je 0x4247ce
cmp eax, dword [esi + 0x1048]
jne 0x4247ce
cmp edx, dword [esi + 0x104c]
jne 0x4247ce
push str.We_are_completely_uploaded_and_fine_n
push esi
mov byte [esi + 0x158], 1
call fcn.0041d8a0
mov ecx, dword [esp + 0x18]
add esp, 8
mov eax, dword [esi + 0x164]
cmp eax, ecx
je 0x424821
sub eax, ecx
add dword [esi + 0x168], ecx
mov dword [esi + 0x164], eax
jmp 0x42487e
test byte [esi + 0x154], 0x20
jne 0x424893
and dword [esi + 0x154], 0xfffffffd
cmp byte [ebp + 0x293], 0
je 0x424893
push ebp
call fcn.00423420
add esp, 4
test eax, eax
je 0x424893
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esi + 0xd08]
test eax, eax
jne 0x424848
push dword [esi + 0x924]
call dword [section..data]
add esp, 4
mov dword [esi + 0xd08], eax
test eax, eax
je 0x424627
cmp byte [esi + 0x158], 0
mov dword [esi + 0x168], eax
mov dword [esi + 0x164], 0
je 0x42487e
and dword [esi + 0x154], 0xfffffffd
cmp byte [ebp + 0x293], 0
je 0x42487e
push ebp
call fcn.00423420
add esp, 4
test eax, eax
jne 0x424895
push dword [esi + 0xbc]
push dword [esi + 0xb8]
push esi
call fcn.0042aae0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret