Function at 0x10041490
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 [0x101f1014]
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 0x10041588
test edi, edi
je 0x10041588
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 0x1004159a
mov ebx, edx
mov edx, dword [edx + 0xc]
mov al, byte [edx]
cmp al, 0xb0
je 0x10041695
cmp al, 0x8a
je 0x10041808
movzx eax, al
cmp eax, 0xb1
je 0x10041810
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
mov ecx, esi
push eax
call fcn.100418d0
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.100418d0
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.10041bb0
add esp, 0x1c
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1004157d
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx + 0x13]
cmp ecx, 7
ja 0x1004157d
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 0x1004162d
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
cmp eax, 0x2a
jle 0x100416af
lea ecx, [eax - 0x2b]
cmp ecx, 8
ja case.default.0x100415af
jmp dword [ecx*4 + 0x101b9240]
mov edx, dword [edx + 0xc]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.100418d0
add esp, 4
mov ecx, dword [edi]
cmp byte [ecx + 0x57], 0
jne 0x1004183f
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 0x1004169d
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jle 0x10041754
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 0x10041559
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx + 0x13]
cmp ecx, 7
ja 0x10041588
mov edx, ecx
inc dl
mov esi, dword [ebp + 8]
mov byte [esi + 0x13], dl
mov dword [esi + ecx*4 + 0xa0], eax
jmp 0x10041588
mov ecx, edx
call fcn.100423b0
mov edx, dword [ebp + 0xc]
cmp eax, edx
jne 0x10041849
cmp bl, 0x2c
jne 0x100416c9
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.10041490
add esp, 0x10
push edi
push dword [ebp + 0x10]
push dword [ebx + 0x10]
push esi
call fcn.10041490
add esp, 0x10
jmp 0x10041559
mov al, byte [edx + 2]
jmp 0x100414f5
cmp byte [ecx], 0x5e
jne 0x100415ec
or byte [ecx + 2], 0x80
jmp 0x100415ec
cmp eax, 0x13
jne case.0x100415af.46
push dword [ebp + 0x14]
push esi
push dword [edx + 0xc]
push dword [ebp + 8]
call fcn.10057840
jmp 0x1004168d
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.10057840
add esp, 0x10
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push dword [eax + 0x10]
push esi
call fcn.10041490
add esp, 0x10
mov ecx, dword [edi + 0xc]
neg ebx
mov eax, dword [ecx + 0x38]
add eax, dword [ecx + 0x3c]
jns 0x100417ed
mov edx, edi
push ebx
call fcn.100329e0
add esp, 4
jmp 0x10041559
mov ecx, dword [ebp + 8]
push dword [ebp + 0x14]
push fcn.10041490
push esi
call fcn.1003a740
add esp, 0xc
jmp 0x10041559
mov ecx, dword [ebp + 8]
cmp dword [ebp + 0x14], 0
je 0x1004186c
push esi
push esi
call fcn.10063250
add esp, 8
jmp 0x10041559
mov ecx, edi
mov edx, dword [ebp - 0x1c]
push 0
push esi
push eax
call fcn.10021190
jmp 0x10041730
cmp eax, 0xab
je case.0x100415af.45
cmp eax, 0xaf
je 0x10041884
mov eax, dword [edx + 4]
mov ecx, eax
and ecx, 0x20000001
cmp ecx, 0x20000000
je 0x10041856
and eax, 0x10000001
cmp eax, 0x10000000
je 0x10041559
lea eax, [ebp - 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.100418d0
add esp, 4
xor ebx, ebx
cmp dword [ebp - 0x20], 0
setne bl
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jle 0x100417fb
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 0x10041559
mov eax, dword [edi + 0x6c]
mov ecx, dword [ecx + 0x40]
mov dword [ecx + ebx*4], eax
jmp 0x10041559
mov ecx, edi
mov edx, 0x11
push ebx
jmp 0x1004175b
mov eax, dword [edx + 0x14]
add eax, 0x1c
jmp 0x10041813
lea eax, [edx + 0x14]
mov eax, dword [eax]
cmp dword [eax], 1
jle 0x1004150b
mov edx, ebx
jmp case.0x100415af.46
xor eax, eax
cmp bl, 0x2d
sete al
xor eax, 0x35
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0x80
jmp 0x100414e6
mov ecx, 0x101f4350
jmp 0x100415e3
push dword [ebp + 0x14]
push esi
push eax
push dword [ebp + 8]
jmp 0x10041688
xor eax, eax
mov ecx, edi
mov edx, 9
push eax
push esi
push eax
call fcn.10030110
jmp 0x10041730
mov ebx, dword [ecx + 0x38]
lea eax, [ebx - 1]
mov dword [ecx + 0x38], eax
push eax
push esi
call fcn.10063250
add esp, 8
jmp 0x100416fe
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 0x1004188c
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 0x100418c0
push eax
push esi
push ecx
jmp 0x100416bf
push eax
push esi
push ecx
jmp 0x1004184e