Function at 0x10039cc
Capabilities:
Inspect section memory permissions

Disassembly:
movzx eax, word [ebp - 8]
mov ecx, dword [ebp - 0xc0]
lea eax, [eax + eax*4]
lea edi, [ecx + eax*8]
mov eax, dword [ecx + eax*8 + 0xc]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xbc], eax
mov eax, dword [edi + 0x14]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x88], eax
call fcn.0100347d
add edi, dword [edx - 0x78]
std
push dword [edi + 0x10]
push dword [ebp - 0x88]
push dword [ebp - 0xbc]
call fcn.010033ee
add esp, 0xc
inc dword [ebp - 8]
mov ax, word [ebp - 8]
cmp ax, word [esi + 6]
jb 0x100399e
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x3c]
add esi, edi
mov dword [ebp - 0x88], esi
mov eax, dword [esi + 0x80]
cmp eax, ebx
jne 0x1003a18
push 0x8000
push ebx
push edi
jmp 0x1003c91
mov edi, eax
cmp edi, ebx
je 0x1003c88
add edi, dword [ebp + 0xc]
call fcn.0100347d
jge 0x1003a8d
shl dword [esi + 0x75045f39], 9
cmp dword [edi + 4], ebx
jne 0x1003a3c
cmp dword [edi + 0xc], ebx
je 0x1003ae6
mov esi, dword [edi + 0xc]
add esi, dword [ebp + 0xc]
push esi
call dword [ebp - 0xb8]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1003a62
push esi
call dword [ebp - 0xc8]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1003c88
call fcn.0100347d
cmp ebp, dword [ebp + edx + 0x1a]
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp + 0xc]
lea esi, [eax + ecx]
mov eax, dword [edi]
cmp eax, ebx
jne 0x1003a7f
mov dword [ebp + 0x10], esi
jmp 0x1003a84
add eax, ecx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x1003ad8
jmp 0x1003a92
mov ecx, dword [ebp + 0xc]
add ecx, eax
test eax, 0x80000000
je 0x1003aa3
and eax, 0xffff
push eax
jmp 0x1003aa7
add ecx, 2
push ecx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.01003442
add esp, 0xc
cmp esi, ebx
mov dword [esi], eax
je 0x1003c88
add dword [ebp + 0x10], 4
add esi, 4
call fcn.0100347d
cmpsb byte [esi], byte es:[edi]
popfd
loop 0x1003b19
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
jne 0x1003a8f
mov esi, dword [ebp - 0x88]
add edi, 0x14
jmp 0x1003a2e
mov eax, dword [esi + 0xa0]
cmp eax, ebx
je 0x1003b3c
add eax, dword [ebp + 0xc]
cmp dword [eax], ebx
je 0x1003b3c
lea edi, [eax + 8]
mov ecx, dword [eax + 4]
add ecx, eax
cmp edi, ecx
jae 0x1003b37
movzx ecx, word [edi]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1003b2b
mov edx, dword [ebp + 0xc]
and ecx, 0xfff
add ecx, dword [ebp + 0xc]
sub edx, dword [esi + 0x34]
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1003b33
cmp edx, ebx
jne 0x1003c88
inc edi
inc edi
jmp 0x1003afa
add eax, dword [eax + 4]
jmp 0x1003af3
mov dword [ebp - 8], ebx
jmp 0x1003b47
mov esi, dword [ebp - 0x88]
mov ax, word [ebp - 8]
cmp ax, word [esi + 6]
jne 0x1003b60
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov esi, 0x60000000
jmp 0x1003b88
call fcn.0100347d
push es
mov byte [ebx], dl
push 0xf845b70f
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*8 + 0x104]
mov edx, dword [esi + eax*8 + 0x108]
lea eax, [esi + eax*8 + 0xf8]
mov esi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp + 8], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp + 8]
ja 0x1003bde
mov edx, esi
mov edi, esi
and edx, 0x20000000
and edi, 0x40000000
and esi, 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1003bc7
or byte [eax + ecx], 1
cmp edi, ebx
je 0x1003bcf
or byte [eax + ecx], 2
cmp esi, ebx
je 0x1003bd8
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp + 8]
jbe 0x1003bbc
inc dword [ebp - 8]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp - 8]
cmp cx, word [eax + 6]
jbe 0x1003b41
mov esi, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1003c2b
dec eax
je 0x1003c22
sub eax, 3
je 0x1003c19
mov dword [ebp - 4], 0x40
jmp 0x1003c2e
mov dword [ebp - 4], 4
jmp 0x1003c2e
mov dword [ebp - 4], 0x20
jmp 0x1003c2e
mov dword [ebp - 4], ecx
call fcn.0100347d
sar byte [edi + ecx*8], 0x8f
cmp dword [ebp - 4], 0x40
je 0x1003c55
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push esi
call dword [ebp - 0xc4]
test eax, eax
je 0x1003c88
add esi, dword [ebp - 0xac]
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1003bfa
mov eax, dword [ebp - 0x88]
mov esi, dword [eax + 0x28]
add esi, dword [ebp + 0xc]
call fcn.0100347d
out 0xca, al
retf 0x75ff
push 0x8000
push ebx
push dword [ebp + 0xc]
call dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret