Function at 0x452160
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push edi
mov edi, eax
mov eax, dword [esi + 0xb0]
xor ebp, ebp
or eax, dword [esi + 0xb4]
jne 0x452191
mov ecx, dword [esi + 0xb8]
or ecx, dword [esi + 0xbc]
jne 0x452191
push 7
push esi
call fcn.004344b0
add esp, 8
mov ebx, 2
or dword [edi], ebx
cmp dword [esi + 0x16c], ebp
jne 0x4523e5
cmp dword [esi + 0xdc0], ebp
jne 0x4521ca
mov edx, dword [esi + 0x964]
push edx
call dword [0x47604c]
add esp, 4
mov dword [esi + 0xdc0], eax
test eax, eax
je 0x45232d
mov eax, dword [esi + 0xdc0]
mov dword [esi + 0x170], eax
cmp dword [esi + 0x158], ebp
jne 0x4522ce
mov eax, dword [esi + 0x184]
cmp dword [esi + 0x130], ebx
jne 0x452256
cmp dword [eax + 0x1b0], ebx
jne 0x452256
and dword [esi + 0x154], 0xfffffffd
lea ecx, [esp + 0x18]
push ecx
mov dword [esi + 0x130], 1
call fcn.004301c0
mov edx, dword [eax]
mov dword [esi + 0x120], edx
mov ecx, dword [eax + 4]
mov dword [esi + 0x124], ecx
mov edx, dword [eax + 8]
mov dword [esi + 0x128], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0x12c], eax
and dword [edi], 0xfffffffd
mov eax, dword [esi + 0xb88]
cdq
push 0
push edx
push eax
push esi
call fcn.00425ae0
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 + 0x350]
test dword [ecx + 0x40], 0x40003
je 0x452277
xor edx, edx
cmp dword [eax + 0x1b0], 1
sete dl
mov ebp, edx
mov ecx, dword [esi + 0x964]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
call fcn.004512d0
add esp, 0xc
test eax, eax
jne 0x45256b
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x4522d2
jg 0x4522e1
and dword [esi + 0x154], 0xfffffffd
cmp dword [edi + 0x2e8], 0
je 0x452569
push edi
call fcn.004516c0
add esp, 4
test eax, eax
je 0x452569
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edi, dword [esp + 0x2c]
test byte [esi + 0x154], 0x20
jne 0x452569
jmp 0x4522a2
mov dword [esi + 0x16c], ebx
test ebp, ebp
jne 0x4523bd
cmp dword [esi + 0x838], ebp
je 0x4523bd
cmp dword [esi + 0xe10], ebp
jne 0x452339
mov edx, dword [esi + 0x964]
add edx, edx
push edx
call dword [0x47604c]
add esp, 4
mov dword [esi + 0xe10], eax
test eax, eax
jne 0x452339
push str.Failed_to_alloc_scratch_buffer_
push esi
call fcn.00428510
add esp, 8
pop edi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x1c
ret
xor edi, edi
xor eax, eax
test ebx, ebx
jle 0x45239f
mov ecx, dword [esi + 0x170]
mov cl, byte [edi + ecx]
mov edx, dword [esi + 0xe10]
cmp cl, 0xa
jne 0x452396
mov byte [eax + edx], 0xd
mov ecx, dword [esi + 0xe10]
inc eax
mov byte [eax + ecx], 0xa
cmp dword [esi + 0x838], 0
jne 0x452399
mov ecx, dword [esi + 0x1120]
mov edx, dword [esi + 0x1124]
mov ebp, ecx
and ebp, edx
cmp ebp, 0xffffffff
je 0x452399
add ecx, 1
adc edx, 0
mov dword [esi + 0x1120], ecx
mov dword [esi + 0x1124], edx
jmp 0x452399
mov byte [eax + edx], cl
inc edi
inc eax
cmp edi, ebx
jl 0x452341
mov edi, dword [esp + 0x2c]
cmp eax, ebx
je 0x4523bd
mov ecx, dword [esi + 0xe10]
mov dword [esp + 0x10], eax
mov dword [esi + 0x170], ecx
mov dword [esi + 0x16c], eax
mov edx, dword [edi + 0x350]
test dword [edx + 0x40], 0x30000
je 0x4523e9
mov eax, dword [esp + 0x10]
push eax
push edi
call fcn.00439890
add esp, 8
test eax, eax
je 0x4523e9
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edi, dword [esp + 0x2c]
mov edx, dword [esi + 0x16c]
mov eax, dword [esi + 0x170]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [edi + 0x378]
push edx
push eax
push ecx
push edi
call fcn.00428070
add esp, 0x14
test eax, eax
jne 0x45256b
mov edi, dword [edi + 0x378]
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 0x452454
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp dword [esi + 0x9dc], 0
je 0x452474
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0x170]
push edx
push eax
push 4
push esi
call fcn.00428330
add esp, 0x10
mov ecx, dword [esp + 0xc]
mov eax, ecx
cdq
add dword [esi + 0xb8], eax
adc dword [esi + 0xbc], edx
cmp dword [esi + 0x178], 0
je 0x452499
cmp dword [esi + 0x180], 0
je 0x4524d1
mov edx, dword [esi + 0xb8]
cmp edx, dword [esi + 0x1120]
jne 0x4524d1
mov eax, dword [esi + 0xbc]
cmp eax, dword [esi + 0x1124]
jne 0x4524d1
push str.We_are_completely_uploaded_and_fine_n
push esi
mov dword [esi + 0x158], 1
call fcn.004283c0
mov ecx, dword [esp + 0x14]
add esp, 8
mov eax, dword [esi + 0x16c]
cmp eax, ecx
je 0x4524eb
sub eax, ecx
add dword [esi + 0x170], ecx
mov dword [esi + 0x16c], eax
jmp 0x452552
cmp dword [esi + 0xdc0], 0
jne 0x452512
mov ecx, dword [esi + 0x964]
push ecx
call dword [0x47604c]
add esp, 4
mov dword [esi + 0xdc0], eax
test eax, eax
je 0x45232d
cmp dword [esi + 0x158], 0
mov edx, dword [esi + 0xdc0]
mov dword [esi + 0x170], edx
mov dword [esi + 0x16c], 0
je 0x452552
mov eax, dword [esp + 0x2c]
and dword [esi + 0x154], 0xfffffffd
cmp dword [eax + 0x2e8], 0
je 0x452552
push eax
call fcn.004516c0
add esp, 4
test eax, eax
jne 0x45256b
mov eax, dword [esi + 0xbc]
mov ecx, dword [esi + 0xb8]
push eax
push ecx
push esi
call fcn.00434950
add esp, 0xc
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret