Function at 0x41bb66
Capabilities:
Inspect section memory permissions
Read file on windows

Disassembly:
push 0xd8
mov eax, 0x508bf8
call fcn.00506098
mov edi, edx
mov dword [ebp - 0x38], edi
mov esi, ecx
cmp edi, 0x2710
jb 0x41bb8b
xor eax, eax
jmp 0x41bedd
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 0xa4
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cdq
idiv dword [ebp - 0x18]
cmp edi, eax
jbe 0x41bbbc
cmp edi, 0x18f9c18
ja 0x41bee3
push edi
call fcn.0041d1cc
xor eax, eax
mov dword [ebp - 0x18], ebx
inc eax
test edi, edi
je 0x41bed9
push 4
pop edi
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x51e784
call fcn.004094e6
xor ecx, ecx
inc ecx
push ecx
mov byte [ebp - 4], cl
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x51e784
call fcn.004094e6
push 2
pop eax
push ecx
mov ecx, esp
mov byte [ebp - 4], al
push 0x51e784
call fcn.004094e6
push ebx
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], bl
call fcn.004d33f4
push ebx
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
push edi
lea eax, [ebp - 0xe0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bec9
cmp dword [ebp - 0x24], edi
jne 0x41bec9
push ebx
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bec9
cmp dword [ebp - 0x28], edi
jne 0x41bec9
cmp dword [ebp - 0xe0], 0x1b
je 0x41bc72
cmp dword [ebp - 0xe0], 0x1c
jne 0x41bc7d
mov ax, word [ebp - 0x2c]
mov word [ebp - 0xd0], ax
push ebx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bec9
cmp dword [ebp - 0x30], edi
jne 0x41bec9
mov ecx, dword [ebp - 0x10]
movzx edi, cl
mov dword [ebp - 0xbc], edi
test ecx, 0x2000000
je 0x41bcbe
xor edx, edx
inc edx
mov dword [ebp - 0x44], edx
jmp 0x41bcd3
mov eax, dword [ebp - 0x44]
test ecx, 0x4000000
push 2
pop edx
cmovne eax, edx
xor edx, edx
mov dword [ebp - 0x44], eax
inc edx
mov eax, ecx
shr eax, 0x1b
and eax, edx
mov dword [ebp - 0xdc], eax
mov eax, ecx
shr eax, 0x18
and eax, edx
mov dword [ebp - 0xe4], eax
test ecx, 0x10000000
je 0x41bd3d
mov dword [ebp - 0xb8], SHLockShared
call fcn.00426920
test eax, eax
je 0x41bd34
mov eax, dword [ebp - 0xdc]
test eax, eax
jne 0x41bd34
mov edx, dword [ebp - 0xe0]
mov edi, dword [ebp - 0xbc]
push 2
pop ecx
cmp edx, ecx
push 1
pop ecx
cmove eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xdc], eax
jmp 0x41bd43
mov edi, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebp - 0xb8]
test ecx, 0x20000000
mov dword [ebp - 0x14], reloc.OLEAUT32.dll_SysReAllocString
cmovne eax, dword [ebp - 0x14]
mov dword [ebp - 0xb8], eax
test ecx, 0xc0000000
je 0x41bd6d
push 2
pop eax
jmp 0x41bd93
test ecx, 0x40000000
je 0x41bd81
mov dword [ebp - 0x8c], 3
jmp 0x41bd99
mov eax, dword [ebp - 0x8c]
test ecx, 0x80000000
push 4
pop ecx
cmovne eax, ecx
mov dword [ebp - 0x8c], eax
xor eax, eax
inc eax
cmp edx, eax
jge 0x41bda8
mov dword [ebp - 0xe0], eax
jmp 0x41bdb6
push 0x32
pop eax
cmp edx, eax
cmovg edx, eax
mov dword [ebp - 0xe0], edx
test edi, edi
jns 0x41bdc2
mov dword [ebp - 0xbc], ebx
jmp 0x41bdd0
push 0x1e
pop eax
cmp edi, eax
cmovg edi, eax
mov dword [ebp - 0xbc], edi
push ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x14], ebx
push eax
push 4
pop edi
push edi
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bec9
cmp dword [ebp - 0x34], edi
jne 0x41bec9
push dword [ebp - 0x14]
lea ecx, [ebp - 0xe4]
call fcn.004d3601
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041cf9c
test eax, eax
je 0x41bec9
cmp dword [ebp - 0xe0], 0x10
jne 0x41be85
mov edx, dword [ebp - 0xc4]
mov esi, dword [ebp - 0x98]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x41be85
lea edi, [esi + 0xc]
cmp dword [edi], ebx
jl 0x41be73
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x41be73
call fcn.004098e7
mov dword [ebp - 0x20], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x41be68
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebp - 0x98], eax
jmp 0x41be82
push dword [edx - 0xc]
lea ecx, [ebp - 0x98]
push edx
call fcn.0040942f
push 4
pop edi
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041cf9c
test eax, eax
je 0x41bec9
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xe4]
push eax
call fcn.0041ce03
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], bl
call fcn.0041bee9
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x38]
jae 0x41bed6
mov esi, dword [ebp - 0x1c]
jmp 0x41bbcd
lea ecx, [ebp - 0xe4]
call fcn.0041bee9
jmp 0x41bedb
xor eax, eax
inc eax
mov ebx, eax
mov eax, ebx
call fcn.00506061
ret
call fcn.0040ed23
int3