Function at 0x408150
Capabilities:
Enumerate pe sections
Set socket configuration

Disassembly:
mov eax, 0x1054
call fcn.00422570
mov eax, dword [0x4538c0]
xor eax, esp
mov dword [esp + 0x1050], eax
mov eax, dword [esp + 0x1058]
mov ecx, dword [esp + 0x105c]
mov edx, dword [esp + 0x1060]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
push ebx
mov ebx, dword [esp + 0x106c]
mov dword [esp + 0x18], ebx
push esi
mov esi, dword [esp + 0x106c]
mov dword [esp + 0x34], esi
cmp eax, 2
jne 0x4081d1
push esi
push edx
push ecx
push 0x452048
call fcn.00409aa0
add esp, 0x10
test eax, eax
je 0x4081ee
pop esi
pop ebx
mov ecx, dword [esp + 0x1050]
xor ecx, esp
call fcn.0042255f
add esp, 0x1054
ret
cmp eax, 0x17
jne 0x4081ee
push esi
push edx
push ecx
push 0x45206c
call fcn.00409aa0
add esp, 0x10
test eax, eax
jne 0x408acc
push ebp
mov ebp, dword [esp + 0x1078]
mov ecx, 0x10
mov edx, 0x457724
test ebp, ebp
je 0x408271
cmp word [0x457720], 0x17
mov esi, 4
cmove esi, ecx
mov ecx, 0x457728
cmovne ecx, edx
mov edx, dword [0x4531c0]
sub esi, 4
jb 0x408238
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40823d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x408227
cmp esi, 0xfffffffc
je 0x408271
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x40826a
cmp esi, 0xfffffffd
je 0x408271
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x40826a
cmp esi, 0xfffffffe
je 0x408271
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x40826a
cmp esi, 0xffffffff
je 0x408271
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x408271
mov eax, 1
jmp 0x408276
mov eax, dword [0x454510]
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], 0
push edi
test eax, eax
jle 0x408ac8
mov eax, 0x4543d0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x5e]
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x4082b2
test ebp, ebp
jne 0x4082b2
lea edi, [ebx + 0x148]
lea eax, [ebx + 0x164]
jmp 0x4082cc
lea edi, [esp + 0x40]
test ebx, ebx
je 0x4082c6
test ebp, ebp
jne 0x4082c6
lea eax, [ebx + 0x164]
jmp 0x4082cc
lea eax, [esp + 0x40]
mov edi, eax
mov dword [esp + 0x14], eax
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x18], 0
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], 0
test ebp, ebp
je 0x408389
mov bx, word [0x457720]
mov eax, 0x10
mov edx, dword [0x4531c0]
cmp bx, 0x17
mov esi, 4
mov ecx, 0x457728
cmove esi, eax
mov eax, 0x457724
cmovne ecx, eax
sub esi, 4
jb 0x408341
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x408346
add ecx, 4
add edx, 4
sub esi, 4
jae 0x408330
cmp esi, 0xfffffffc
je 0x408389
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x408373
cmp esi, 0xfffffffd
je 0x408389
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x408373
cmp esi, 0xfffffffe
je 0x408389
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x408373
cmp esi, 0xffffffff
je 0x408389
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x408389
mov edx, dword [0x45773c]
mov word [edi], bx
movzx ecx, word [0x457720]
mov ebx, dword [esp + 0x30]
jmp 0x408398
mov ebx, dword [esp + 0x30]
movzx eax, word [ebx]
mov edx, dword [ebx + 0x1c]
mov ecx, eax
mov word [edi], ax
test edx, edx
mov dword [esp + 0x18], edx
mov eax, 0x11
mov ebp, 6
cmovne eax, ebp
neg edx
push eax
sbb eax, eax
add eax, 2
cmp cx, 0x17
push eax
mov ecx, 0x17
mov eax, 2
cmove eax, ecx
push eax
push dword [0x4531c8]
call dword [0x4531d0]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x408ac8
cmp word [edi], 0x17
mov eax, 0x1c
mov ecx, 0x10
cmove ecx, eax
push ecx
push edi
push ebp
push dword [0x4531c8]
call dword [0x4531d8]
test eax, eax
jne 0x408aac
cmp dword [esp + 0x107c], eax
je 0x4084a5
cmp word [0x457720], 0x17
mov ecx, 0x10
mov edx, dword [0x4531c0]
mov esi, 4
cmove esi, ecx
mov eax, 0x457724
mov ecx, 0x457728
cmovne ecx, eax
sub esi, 4
jb 0x408451
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x408456
add ecx, 4
add edx, 4
sub esi, 4
jae 0x408440
cmp esi, 0xfffffffc
je 0x4084a5
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x408483
cmp esi, 0xfffffffd
je 0x4084a5
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x408483
cmp esi, 0xfffffffe
je 0x4084a5
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x408483
cmp esi, 0xffffffff
je 0x4084a5
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x4084a5
movups xmm0, xmmword [0x457720]
mov edi, dword [esp + 0x14]
movups xmmword [edi], xmm0
movq xmm0, qword [0x457730]
movq qword [edi + 0x10], xmm0
mov eax, dword [0x457738]
jmp 0x4084bc
movups xmm0, xmmword [ebx]
mov edi, dword [esp + 0x14]
movups xmmword [edi], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [edi + 0x10], xmm0
mov eax, dword [ebx + 0x18]
cmp dword [esp + 0x18], 0
mov dword [edi + 0x18], eax
je 0x408508
cmp word [edi], 0x17
mov ecx, 0x1c
push 8
mov eax, 0x10
cmove eax, ecx
push eax
push edi
push ebp
push 0
call fcn.0041af30
add esp, 0x14
test eax, eax
jne 0x408aac
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 1
push eax
push 1
push 6
push ebp
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, dword [esp + 0x2c]
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x408511
sub esi, ecx
push esi
push ebx
call fcn.0041b030
movzx eax, ax
cmp esi, 0xff
mov dword [esp + 0x24], eax
mov word [esp + 0x66], ax
mov eax, 0xff
cmovg esi, eax
mov dword [esp + 0x68], 0x1000001
push esi
lea eax, [esp + 0x77]
mov dword [esp + 0x70], 0
push ebx
push eax
mov word [esp + 0x7c], 0
call fcn.00423770
lea eax, [esi + 0xd]
mov byte [esp + esi + 0x7f], 0
mov dword [esp + 0x28], eax
lea ebx, [esp + 0x7e]
lea eax, [esp + 0x7f]
push 0x2e
push eax
call fcn.004233d0
add esp, 0x1c
test eax, eax
je 0x40859b
mov cl, al
sub cl, bl
dec cl
mov byte [ebx], cl
mov ebx, eax
inc eax
push 0x2e
push eax
call fcn.004233d0
add esp, 8
test eax, eax
jne 0x408581
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
sub al, bl
dec cl
add al, cl
cmp dword [esp + 0x107c], 1
mov byte [ebx], al
mov byte [esp + esi + 0x6c], 0
jne 0x4085c1
mov eax, 0xc
jmp 0x4085d3
cmp dword [esp + 0x20], 0x17
mov eax, 1
mov ecx, 0x1c
cmove eax, ecx
mov byte [esp + esi + 0x6d], al
mov word [esp + esi + 0x6e], 0x100
add esi, 0x12
cmp dword [esp + 0x18], 0
je 0x408601
lea ebx, [esp + 0x5c]
push esi
mov dword [esp + 0x14], ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x5c], ax
add esi, 2
jmp 0x408605
mov ebx, dword [esp + 0x10]
imul eax, dword [0x453234], 0x3e8
push eax
push esi
push ebx
push edi
push ebp
push 0
call fcn.00419960
add esp, 0x18
cmp eax, esi
je 0x408643
push 2
push ebp
push dword [0x4531c8]
call dword [0x453208]
push ebp
push dword [0x4531c8]
call dword [0x45320c]
jmp 0x4088b6
cmp dword [esp + 0x24], 0
je 0x40865f
mov eax, esi
mov esi, dword [esp + 0x24]
cdq
add dword [esi + 0x1a0], eax
adc dword [esi + 0x1a4], edx
jmp 0x408663
mov esi, dword [esp + 0x24]
imul eax, dword [0x453248], 0x3e8
push eax
push 0x1000
push ebx
push edi
push ebp
push 0
call fcn.00419ab0
add esp, 0x18
mov ebx, eax
push 2
push ebp
push dword [0x4531c8]
call dword [0x453208]
push ebp
push dword [0x4531c8]
call dword [0x45320c]
cmp ebx, 0xd
jle 0x4088b6
test esi, esi
je 0x4086ba
mov eax, ebx
cdq
add dword [esi + 0x1a8], eax
adc dword [esi + 0x1ac], edx
cmp dword [esp + 0x18], 0
je 0x408724
mov ecx, dword [esp + 0x10]
movzx eax, word [ecx]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [esp + 0x10]
mov ecx, 0x1000
movzx eax, ax
add edx, 2
add ebx, 0xfffffffe
mov dword [esp + 0x10], edx
cmp ax, cx
ja 0x4088b6
mov esi, eax
cmp esi, ebx
jl 0x4088b6
jle 0x408728
imul eax, dword [0x453248], 0x3e8
push eax
mov eax, esi
sub eax, ebx
push eax
lea eax, [ebx + edx]
push eax
push edi
push ebp
push 0
call fcn.00419ab0
sub esi, ebx
add esp, 0x18
cmp eax, esi
jne 0x4088b6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
cmp word [edx], ax
jne 0x4088b6
movzx ecx, byte [edx + 6]
mov esi, 0x100
movzx eax, byte [edx + 7]
imul ecx, esi
add cx, ax
movzx edi, cx
cmp edi, 1
jb 0x408ac8
movzx ecx, byte [edx + 4]
movzx eax, byte [edx + 5]
imul ecx, esi
add cx, ax
cmp cx, 1
jne 0x4088b6
mov esi, 0xd
cmp ebx, esi
jle 0x408780
cmp byte [esi + edx], 0
je 0x408780
inc esi
cmp esi, ebx
jl 0x408775
add esi, 5
cmp esi, ebx
jge 0x4088b6
mov eax, 0xff
mov dword [esp + 0x14], 0
cmp di, ax
cmova edi, eax
movzx eax, di
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4088b6
cmp dword [esp + 0x20], 0x17
mov ecx, 0x10
mov eax, 0x1c
cmove ecx, eax
mov dword [esp + 0x18], ecx
mov al, byte [esi + edx]
cmp al, 0xc0
jae 0x4087ee
nop word [eax + eax]
test al, al
je 0x4087ea
movzx ecx, al
lea eax, [ecx + 0xe]
add eax, esi
cmp eax, ebx
jge 0x4087ea
inc esi
add esi, ecx
mov al, byte [esi + edx]
cmp al, 0xc0
jb 0x4087d0
mov ecx, dword [esp + 0x18]
cmp byte [esi + edx], 0
jne 0x4087f5
dec esi
lea eax, [ecx + esi]
cmp eax, ebx
jg 0x4088b6
movzx ebp, byte [esi + edx + 0xa]
lea edi, [esi + edx]
movzx eax, byte [edi + 0xb]
shl ebp, 8
add ebp, eax
lea edx, [ebp + 0xc]
add edx, esi
cmp edx, ebx
jg 0x4088b6
cmp dword [esp + 0x107c], 1
mov al, byte [edi + 2]
je 0x40888b
test al, al
jne 0x408899
cmp dword [esp + 0x20], 0x17
mov eax, 1
movzx ecx, byte [edi + 3]
mov esi, 0x1c
cmove eax, esi
cmp ecx, eax
jne 0x408899
cmp dword [esp + 0x20], 0x17
mov esi, 4
mov eax, 0x10
cmove esi, eax
cmp ebp, esi
jne 0x408899
push dword [edi + 6]
call dword [sym.imp.WS2_32.dll_ntohl]
lea ecx, [edi + 0xc]
mov ebp, eax
mov edi, dword [esp + 0x34]
push esi
push ecx
push edi
call fcn.00423770
add esp, 0xc
cmp ebp, 0xa8c0
jbe 0x4088de
mov ebp, 0xa8c0
jmp 0x4088e8
test al, al
jne 0x408899
cmp byte [edi + 3], 0xc
je 0x408a42
mov ecx, dword [esp + 0x14]
mov esi, edx
mov edx, dword [esp + 0x10]
inc ecx
cmp ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
jl 0x4087c3
mov ecx, dword [esp + 0x38]
add dword [esp + 0x30], 0x20
inc ecx
mov dword [esp + 0x38], ecx
cmp ecx, dword [esp + 0x28]
jge 0x408ac8
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x107c]
jmp 0x408294
test ebp, ebp
mov eax, 1
cmove ebp, eax
xor eax, eax
mov dword [esp + 0x28], ebp
mov esi, ebp
mov ebx, 0x45206c
add esi, dword [0x453380]
push 0x4554c0
adc eax, dword [0x453384]
cmp dword [esp + 0x24], 0x17
mov dword [esp + 0x20], eax
mov eax, 0x452048
cmovne ebx, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
je 0x408a23
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x408a23
cmp dword [ebx + 0x18], 0
je 0x408a23
mov edi, dword [ebx + 0x20]
mov dword [esp + 0x2c], edi
test edi, edi
je 0x408a23
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 8]
push eax
push edi
push ecx
call fcn.00409960
push dword [ebx + 4]
lea eax, [edi + 0x1c]
push dword [esp + 0x44]
push eax
call fcn.00423770
mov eax, dword [esp + 0x34]
push edi
push ebx
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0
call fcn.00409a00
mov ecx, dword [ebx + 0x18]
mov edx, eax
mov esi, dword [ecx + edx*4]
lea ebp, [ecx + edx*4]
add esp, 0x20
mov dword [esp + 0x1c], edx
test esi, esi
je 0x4089fe
nop dword [eax]
mov eax, dword [esi + 0x14]
cmp eax, dword [0x453384]
jl 0x4089d2
jg 0x4089b8
mov eax, dword [esi + 0x10]
cmp eax, dword [0x453380]
jb 0x4089d2
mov ecx, edi
mov edx, esi
mov edi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x408a1e
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4089c1
mov eax, dword [esi + 0x18]
mov dword [ebp], eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [ebx + 0x20]
mov dword [esi + 0x18], eax
mov dword [ebx + 0x20], esi
mov esi, dword [ebp]
mov edi, dword [esp + 0x2c]
test esi, esi
jne 0x4089a0
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x18]
push 0x4554c0
mov eax, dword [eax + edx*4]
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0x18]
mov dword [eax + edx*4], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, dword [esp + 0x28]
jmp 0x408a2e
lea ebp, [esi + 0x18]
jmp 0x4089ef
push 0x4554c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x408a38
mov dword [ecx], ebp
mov eax, 1
jmp 0x408aca
lea eax, [esi + ebx]
add edi, 0xc
mov ebx, dword [esp + 0x10]
lea ecx, [ebx + 0xc]
add ecx, eax
cmp edi, ecx
jae 0x408a68
mov al, byte [edi]
test al, al
je 0x408a68
mov byte [edi], 0x2e
inc edi
movzx eax, al
add edi, eax
cmp edi, ecx
jb 0x408a55
mov ebp, dword [esp + 0x24]
mov byte [edi], 0
mov eax, dword [ebp + 0xcc]
test eax, eax
je 0x408a82
push eax
call fcn.0042eb3a
add esp, 4
lea eax, [ebx + 0xd]
add eax, esi
push eax
call fcn.00432e46
push 2
push 0
push 0
push dword [esp + 0x44]
mov dword [ebp + 0xcc], eax
push eax
push dword [esp + 0x38]
call fcn.00408150
add esp, 0x1c
jmp 0x408aca
push 2
push ebp
push dword [0x4531c8]
call dword [0x453208]
push ebp
push dword [0x4531c8]
call dword [0x45320c]
xor eax, eax
pop edi
pop ebp
mov ecx, dword [esp + 0x1058]
pop esi
pop ebx
xor ecx, esp
call fcn.0042255f
add esp, 0x1054
ret