Function at 0x6c11be70
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x5c
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
test byte [0x6c147194], 8
jne 0x6c11c0a0
mov eax, dword [ebp - 0x2c]
lea edi, [eax + 0x80]
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
test ebx, ebx
js 0x6c11bf00
test ebx, 0x20000000
je 0x6c11c2f3
test esi, esi
je 0x6c11c180
mov eax, dword [ebp - 0x30]
shr ebx, 0x19
xor ecx, ecx
mov dword [ebp - 0x20], esi
and ebx, 1
mov word [ebp - 0x1a], cx
mov dword [ebp - 0x24], eax
mov word [ebp - 0x1c], bx
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x24]
call sym._HTTP_InsertCustomHeader
mov ebx, eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
and eax, 0xdfffffff
mov dword [ebp - 0x34], eax
shr ebx, 0x19
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
and ebx, 1
mov dword [esp], ebx
call sym._HTTP_GetCustomHeaderIndex
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
test eax, eax
js 0x6c11beb6
and ebx, 0x10000000
jne 0x6c11c280
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ecx + 0x98]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*4]
mov ecx, dword [ebp - 0x34]
movzx eax, word [edx + 8]
mov dword [ebp - 0x38], edx
mov edx, eax
or eax, 1
and edx, 0xfffffffe
mov word [ebp - 0x40], dx
mov edx, ecx
and edx, 0x2000000
cmove ax, word [ebp - 0x40]
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x38]
mov word [edx + 8], ax
test ecx, ecx
js 0x6c11c240
test dword [ebp - 0x34], 0x41000000
je 0x6c11c1c0
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 4]
cmp word [edx], 0
mov dword [ebp - 0x3c], edx
je 0x6c11c2e0
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x6c11bfa0
sub edx, dword [ebp - 0x3c]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x44], edx
sar edx, 1
mov dword [ebp - 0x2c], edx
cmp word [esi], 0
je 0x6c11c2ce
mov ecx, dword [ebp - 0x38]
mov edx, esi
lea esi, [esi]
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x6c11bfd0
sub edx, esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x40], edx
sar edx, 1
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
test dword [ebp - 0x34], 0x40000000
jne 0x6c11c228
test dword [ebp - 0x34], 0x1000000
je 0x6c11c2a0
mov ecx, dword [ebp - 0x38]
or eax, 2
mov word [ecx + 8], ax
mov ecx, 0x3b
mov word [ebp - 0x46], cx
mov eax, dword [ebp - 0x30]
lea edx, [eax + 3]
lea eax, [edx + edx]
mov dword [ebp - 0x34], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, dword [ebp - 0x34]
test eax, eax
je 0x6c11c2fb
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x44]
add dword [ebp - 0x30], 2
mov dword [ecx + 4], eax
movzx ecx, word [ebp - 0x46]
add dword [ebp - 0x2c], 2
mov word [eax + edx], cx
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 4]
mov word [eax + edx + 2], 0x20
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], esi
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x40]
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._memcpy
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
xor edx, edx
mov eax, dword [eax + 4]
mov word [eax + esi*2], dx
movzx eax, byte [0x6c147194]
jmp 0x6c11c1cc
test ecx, ecx
je 0x6c11c208
mov eax, ecx
shr eax, 0x10
je 0x6c11c160
mov dword [esp + 4], 0xffffffff
mov edi, 0x6c14a071
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x6c11c0de
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0_1
mov edi, eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x6c11c218
shr eax, 0x10
je 0x6c11c1a0
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14a071
test edx, edx
jne 0x6c11c121
mov eax, dword [ebp - 0x30]
mov edx, 0xffffffff
call sym._wine_dbgstr_wn.part.0_1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._____s:__s___0x_08lx_n
mov dword [esp + 8], str.HTTP_ProcessHeader
mov dword [esp + 4], 0x6c147194
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x6c11be91
movzx eax, cx
mov dword [esp], 0x6c14a064
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_3
mov edi, eax
jmp 0x6c11c0de
mov dword [esp], edi
xor ebx, ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, word [ebp - 0x30]
mov dword [esp], 0x6c14a064
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_3
jmp 0x6c11c121
movzx eax, byte [0x6c147194]
mov ebx, 0x2f79
test al, 8
je 0x6c11bee4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str._____ld_n
mov dword [esp + 8], str.HTTP_ProcessHeader
mov dword [esp + 4], 0x6c147194
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x6c11bee4
mov edi, 0x6c14a06a
jmp 0x6c11c0de
mov eax, 0x6c14a06a
jmp 0x6c11c121
mov ecx, dword [ebp - 0x38]
or eax, 2
mov word [ecx + 8], ax
mov eax, 0x2c
mov word [ebp - 0x46], ax
jmp 0x6c11c016
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
call sym._HTTP_DeleteCustomHeader.isra.0
test esi, esi
je 0x6c11bee4
cmp word [esi], 0
je 0x6c11bee4
mov edx, dword [ebp - 0x44]
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], esi
mov word [ebp - 0x1a], ax
xor eax, eax
test edx, edx
mov dword [ebp - 0x24], ecx
setne al
mov word [ebp - 0x1c], ax
jmp 0x6c11bed7
mov dword [esp], edi
mov ebx, 0x2f79
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x6c11bef0
mov eax, dword [ebp - 0x30]
lea edx, [eax + 1]
lea eax, [edx + edx]
mov dword [ebp - 0x34], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, dword [ebp - 0x34]
test eax, eax
je 0x6c11c2fb
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 4], eax
jmp 0x6c11c066
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], ecx
jmp 0x6c11bfe9
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x44], 0
jmp 0x6c11bfb7
mov dword [ebp - 0x34], ebx
jmp 0x6c11bf0a
movzx eax, byte [0x6c147194]
mov ebx, 0xe
test al, 4
je 0x6c11c1cc
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.realloc___d_bytes__failed_n
mov dword [esp + 8], str.HTTP_ProcessHeader
mov dword [esp + 4], 0x6c147194
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
movzx eax, byte [0x6c147194]
jmp 0x6c11c1cc