Function at 0x10040dd0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 8]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
test edx, edx
je 0x10040ec8
test edi, edi
je 0x10040ec8
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp + 0x10]
mov bl, byte [edx]
movzx eax, bl
mov ecx, eax
xor ecx, 1
mov dword [ebp - 0x1c], ecx
lea ecx, [eax - 0x34]
cmp ecx, 6
jae 0x10040eda
mov ebx, edx
mov edx, dword [edx + 0xc]
mov al, byte [edx]
cmp al, 0xb0
je 0x10040fd5
cmp al, 0x8a
je 0x10041148
movzx eax, al
cmp eax, 0xb1
je 0x10041150
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
mov ecx, esi
push eax
call fcn.10041210
add esp, 4
mov dword [ebp - 0x24], eax
mov edi, ebx
mov edx, dword [ebx + 0x10]
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.10041210
add esp, 4
mov ebx, dword [ebx + 4]
mov edx, dword [edi + 0xc]
shr ebx, 0xa
and ebx, 1
mov ecx, esi
push ebx
push dword [ebp - 0x20]
push dword [ebp + 0x10]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push dword [edi + 0x10]
call fcn.10041320
add esp, 0x1c
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10040ebd
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx + 0x13]
cmp ecx, 7
ja 0x10040ebd
mov edx, ecx
inc dl
mov esi, dword [ebp + 8]
mov byte [esi + 0x13], dl
mov dword [esi + ecx*4 + 0xa0], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x10040f6d
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
cmp eax, 0x2a
jle 0x10040fef
lea ecx, [eax - 0x2b]
cmp ecx, 8
ja case.default.0x10040eef
jmp dword [ecx*4 + 0x101b7198]
mov edx, dword [edx + 0xc]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.10041210
add esp, 4
mov ecx, dword [edi]
cmp byte [ecx + 0x57], 0
jne 0x1004117f
mov ecx, dword [edi + 0x68]
mov edx, dword [edi + 0x6c]
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*4]
add ecx, 0xffffffec
cmp dword [ecx + 0xc], eax
je 0x10040fdd
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jle 0x10041094
lea edx, [ecx + 1]
mov dword [edi + 0x6c], edx
mov edx, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
mov ebx, dword [ebp - 0x1c]
mov byte [edx + ecx*4], bl
mov word [edx + ecx*4 + 2], 0
mov dword [edx + ecx*4 + 4], eax
mov dword [edx + ecx*4 + 8], esi
xor eax, eax
mov dword [edx + ecx*4 + 0xc], eax
mov dword [edx + ecx*4 + 0x10], eax
mov byte [edx + ecx*4 + 1], 0
jmp 0x10040e99
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx + 0x13]
cmp ecx, 7
ja 0x10040ec8
mov edx, ecx
inc dl
mov esi, dword [ebp + 8]
mov byte [esi + 0x13], dl
mov dword [esi + ecx*4 + 0xa0], eax
jmp 0x10040ec8
mov ecx, edx
call fcn.10041d50
mov edx, dword [ebp + 0xc]
cmp eax, edx
jne 0x10041189
cmp bl, 0x2c
jne 0x10041009
mov edi, dword [ebp + 0x14]
push edi
push esi
push dword [edx + 0xc]
mov esi, dword [ebp + 8]
push esi
mov ebx, edx
call fcn.10040dd0
add esp, 0x10
push edi
push dword [ebp + 0x10]
push dword [ebx + 0x10]
push esi
call fcn.10040dd0
add esp, 0x10
jmp 0x10040e99
mov al, byte [edx + 2]
jmp 0x10040e35
cmp byte [ecx], 0x5e
jne 0x10040f2c
or byte [ecx + 2], 0x80
jmp 0x10040f2c
cmp eax, 0x13
jne case.0x10040eef.46
push dword [ebp + 0x14]
push esi
push dword [edx + 0xc]
push dword [ebp + 8]
call fcn.10052bb0
jmp 0x10040fcd
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x38]
lea eax, [ebx - 1]
mov dword [esi + 0x38], eax
mov ecx, dword [ebp + 0x14]
xor ecx, 0x10
push ecx
push eax
push dword [edx + 0xc]
push esi
call fcn.10052bb0
add esp, 0x10
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push dword [eax + 0x10]
push esi
call fcn.10040dd0
add esp, 0x10
mov ecx, dword [edi + 0xc]
neg ebx
mov eax, dword [ecx + 0x38]
add eax, dword [ecx + 0x3c]
jns 0x1004112d
mov edx, edi
push ebx
call fcn.10032440
add esp, 4
jmp 0x10040e99
mov ecx, dword [ebp + 8]
push dword [ebp + 0x14]
push fcn.10040dd0
push esi
call fcn.1003a1a0
add esp, 0xc
jmp 0x10040e99
mov ecx, dword [ebp + 8]
cmp dword [ebp + 0x14], 0
je 0x100411ac
push esi
push esi
call fcn.1005f230
add esp, 8
jmp 0x10040e99
mov ecx, edi
mov edx, dword [ebp - 0x1c]
push 0
push esi
push eax
call fcn.10016c40
jmp 0x10041070
cmp eax, 0xab
je case.0x10040eef.45
cmp eax, 0xaf
je 0x100411c4
mov eax, dword [edx + 4]
mov ecx, eax
and ecx, 0x20000001
cmp ecx, 0x20000000
je 0x10041196
and eax, 0x10000001
cmp eax, 0x10000000
je 0x10040e99
lea eax, [ebp - 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.10041210
add esp, 4
xor ebx, ebx
cmp dword [ebp - 0x20], 0
setne bl
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jle 0x1004113b
lea edx, [ecx + 1]
mov dword [edi + 0x6c], edx
mov edx, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4], 0x11
mov dword [edx + ecx*4 + 4], eax
mov dword [edx + ecx*4 + 8], esi
mov dword [edx + ecx*4 + 0xc], ebx
mov dword [edx + ecx*4 + 0x10], 0
jmp 0x10040e99
mov eax, dword [edi + 0x6c]
mov ecx, dword [ecx + 0x40]
mov dword [ecx + ebx*4], eax
jmp 0x10040e99
mov ecx, edi
mov edx, 0x11
push ebx
jmp 0x1004109b
mov eax, dword [edx + 0x14]
add eax, 0x1c
jmp 0x10041153
lea eax, [edx + 0x14]
mov eax, dword [eax]
cmp dword [eax], 1
jle 0x10040e4b
mov edx, ebx
jmp case.0x10040eef.46
xor eax, eax
cmp bl, 0x2d
sete al
xor eax, 0x35
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0x80
jmp 0x10040e26
mov ecx, 0x101f2320
jmp 0x10040f23
push dword [ebp + 0x14]
push esi
push eax
push dword [ebp + 8]
jmp 0x10040fc8
xor eax, eax
mov ecx, edi
mov edx, 9
push eax
push esi
push eax
call fcn.1002fb80
jmp 0x10041070
mov ebx, dword [ecx + 0x38]
lea eax, [ebx - 1]
mov dword [ecx + 0x38], eax
push eax
push esi
call fcn.1005f230
add esp, 8
jmp 0x1004103e
mov cl, byte [edx + 2]
mov edi, edx
lea eax, [edx + 0x10]
mov edx, dword [eax]
lea eax, [edx + 0xc]
test byte [edx + 5], 0x20
jne 0x100411cc
xor eax, eax
cmp cl, 0xab
setne al
sete cl
mov edx, dword [edx + 8]
cmp byte [edx + 4], 0
setne dl
xor dl, cl
shl eax, 4
mov ecx, dword [edi + 0xc]
test dl, dl
je 0x10041200
push eax
push esi
push ecx
jmp 0x10040fff
push eax
push esi
push ecx
jmp 0x1004118e