Function at 0x45f820
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
mov byte [ebp - 5], 0
push edi
mov edi, edx
mov dword [ebp - 0xc], edi
mov eax, dword [esi + 0x98]
or eax, dword [esi + 0x9c]
jne 0x45f8b2
mov eax, dword [esi + 0xa0]
or eax, dword [esi + 0xa4]
jne 0x45f8b2
lea eax, [ebp - 0x24]
push eax
call fcn.0045e520
add esp, 4
lea edi, [esi + 0xbf0]
cmp byte [esi + 0xd05], 0
movups xmm1, xmmword [eax]
jne 0x45f8af
mov byte [esi + 0xd05], 1
test edi, edi
je 0x45f8af
movups xmm0, xmmword [esi + 0xc10]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmmword [eax], xmm1
call fcn.0045e660
add esp, 0x20
test edx, edx
jg 0x45f8aa
jl 0x45f8a3
cmp eax, 1
jae 0x45f8aa
mov eax, 1
xor edx, edx
add dword [edi], eax
adc dword [edi + 4], edx
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
or dword [ebx], 2
cmp dword [esi + 0x130], 0
jne 0x45faab
mov eax, dword [esi + 0xd38]
test eax, eax
jne 0x45f8ec
push dword [esi + 0x920]
call dword [0x73166c]
add esp, 4
mov dword [esi + 0xd38], eax
test eax, eax
je 0x45f9f3
cmp byte [esi + 0x586], 0
mov dword [esi + 0x134], eax
jne 0x45fc25
cmp dword [esi + 0x108], 2
mov ecx, dword [esi + 0x138]
jne 0x45f95f
cmp dword [ecx + 0x1b0], 2
jne 0x45f95f
and dword [esi + 0x124], 0xfffffffd
lea eax, [ebp - 0x24]
push eax
mov dword [esi + 0x108], 1
call fcn.0045e520
and dword [ebx], 0xfffffffd
add esp, 4
mov ecx, esi
movups xmm0, xmmword [eax]
movups xmmword [esi + 0xf8], xmm0
mov eax, dword [esi + 0xaf4]
cdq
push edx
push eax
xor edx, edx
call fcn.0044b6d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x568]
test dword [eax + 0x40], 0x40003
je 0x45f979
cmp dword [ecx + 0x1b0], 1
sete byte [ebp - 5]
mov edx, dword [esi + 0x920]
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.0045e780
add esp, 4
test eax, eax
jne 0x45fcbd
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x45fc25
jle 0x45fc32
mov dword [esi + 0x130], ebx
cmp byte [ebp - 5], al
jne 0x45fa8b
cmp byte [esi + 0xb2a], al
je 0x45fa8b
cmp dword [esi + 0xd98], eax
jne 0x45f9ff
mov eax, dword [esi + 0x920]
add eax, eax
push eax
call dword [0x73166c]
add esp, 4
mov dword [esi + 0xd98], eax
test eax, eax
jne 0x45f9ff
push str.Failed_to_alloc_scratch_buffer_
push esi
call fcn.004512d0
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
xor edx, edx
test ebx, ebx
jle 0x45fa73
nop word [eax + eax]
mov eax, dword [esi + 0x134]
mov bl, byte [edx + eax]
mov eax, dword [esi + 0xd98]
cmp bl, 0xa
jne 0x45fa64
mov byte [eax + ecx], 0xd
inc ecx
mov eax, dword [esi + 0xd98]
mov byte [ecx + eax], bl
cmp byte [esi + 0xb2a], 0
jne 0x45fa67
mov edi, dword [esi + 0x1088]
mov eax, edi
mov ebx, dword [esi + 0x108c]
and eax, ebx
cmp eax, 0xffffffff
je 0x45fa67
add edi, 1
mov dword [esi + 0x1088], edi
adc ebx, 0
mov dword [esi + 0x108c], ebx
jmp 0x45fa67
mov byte [eax + ecx], bl
mov ebx, dword [ebp + 8]
inc edx
inc ecx
cmp edx, ebx
jl 0x45fa10
mov edi, dword [ebp - 0xc]
cmp ecx, ebx
je 0x45fa8b
mov eax, dword [esi + 0xd98]
mov ebx, ecx
mov dword [esi + 0x134], eax
mov dword [esi + 0x130], ecx
mov eax, dword [edi + 0x568]
test dword [eax + 0x40], 0x30000
je 0x45faab
mov edx, ebx
mov ecx, edi
call fcn.00457c20
test eax, eax
jne 0x45fcbd
mov eax, dword [edi + 0x590]
xor ecx, ecx
cmp eax, dword [edi + 0x424]
lea eax, [ebp + 8]
push eax
push dword [esi + 0x130]
sete cl
mov dword [ebp + 8], 0
push dword [esi + 0x134]
push ecx
mov eax, dword [edi + ecx*4 + 0x440]
push edi
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jns 0x45fafd
mov eax, dword [ebp + 8]
test eax, eax
je 0x45fc54
cmp eax, 0x51
jne 0x45fcbd
xor edi, edi
mov ebx, dword [ebp - 0xc]
lea ecx, [ebp - 0x10]
push 0
push 0
push ecx
mov eax, dword [ebx + 0x590]
lea ecx, [ebp + 8]
push 4
push ecx
push 0
push 0
push 0x4004747b
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x45fb44
push 4
lea eax, [ebp + 8]
push eax
push 0x1001
push 0xffff
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp byte [esi + 0xb42], 0
mov ecx, dword [esi + 0x134]
je 0x45fb9c
cmp dword [esi + 0x600], 0
je 0x45fb9c
mov eax, dword [esi + 0x7c]
test eax, eax
jne 0x45fb6a
mov eax, dword [esi + 0x78]
test eax, eax
je 0x45fb71
mov byte [eax + 0xe6], 1
push dword [esi + 0x594]
mov eax, dword [esi + 0x600]
push edi
push ecx
push 4
push esi
call eax
mov eax, dword [esi + 0x7c]
add esp, 0x14
test eax, eax
jne 0x45fb95
mov eax, dword [esi + 0x78]
test eax, eax
je 0x45fb9c
mov byte [eax + 0xe6], 0
add dword [esi + 0xa0], edi
mov eax, dword [esi + 0xa0]
adc dword [esi + 0xa4], 0
mov ecx, dword [esi + 0xa4]
mov dword [esi + 0xba0], eax
mov dword [esi + 0xba4], ecx
cmp byte [esi + 0x58a], 0
je 0x45fbd3
cmp byte [esi + 0x58c], 0
je 0x45fc04
mov eax, dword [esi + 0xa0]
cmp eax, dword [esi + 0x1088]
jne 0x45fc04
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0x108c]
jne 0x45fc04
push str.We_are_completely_uploaded_and_fine_n
push esi
mov byte [esi + 0x586], 1
call fcn.004511c0
add esp, 8
mov eax, dword [esi + 0x130]
cmp eax, edi
je 0x45fc60
add dword [esi + 0x134], edi
sub eax, edi
mov dword [esi + 0x130], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [esi + 0x124], 0x20
jne 0x45fcbb
and dword [esi + 0x124], 0xfffffffd
cmp byte [edi + 0x52a], 0
je 0x45fcbb
mov ecx, edi
call fcn.0045ece0
test eax, eax
je 0x45fcbb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x37
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xd38]
test eax, eax
jne 0x45fc87
push dword [esi + 0x920]
call dword [0x73166c]
add esp, 4
mov dword [esi + 0xd38], eax
test eax, eax
je 0x45f9f3
cmp byte [esi + 0x586], 0
mov dword [esi + 0x134], eax
mov dword [esi + 0x130], 0
je 0x45fcbb
and dword [esi + 0x124], 0xfffffffd
cmp byte [ebx + 0x52a], 0
je 0x45fcbb
mov ecx, ebx
call fcn.0045ece0
test eax, eax
jne 0x45fcbd
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret