Function at 0x10012630
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x18
mov edx, dword [ebx + 0x10]
push ebp
mov ebp, dword [esp + 0x20]
mov ecx, dword [ebp + 0x28]
push esi
xor eax, eax
push ebp
push ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
mov byte [esp + 0x2c], al
mov dword [esp + 0x20], eax
call fcn.100150a0
mov esi, eax
add esp, 8
test esi, esi
je 0x10012860
cmp dword [ebp + 0x18], 1
jne 0x10012699
mov eax, dword [ebp]
test eax, 0x2000
je 0x10012699
cmp dword [ebp + 0x20], 0
jne 0x10012699
test byte [esp + 0x14], 8
je 0x10012699
and eax, 0xffffdfff
push 3
push ebp
mov dword [ebp], eax
call fcn.100149f0
add esp, 8
mov eax, dword [ebx + 0x18]
cmp eax, 2
jne 0x100126b2
test dword [esi + 8], 0x800000
jne 0x10012860
cmp eax, eax
je 0x100126bf
test dword [esi + 8], 0x8000000
jne 0x10012860
mov ecx, dword [esi + 8]
test cl, 1
je 0x10012711
not ecx
test ecx, 0x40000000
je 0x100126df
add dword [ebx + 0x10], 1
add dword [ebx + 0x14], 0xffffffff
js 0x10012860
mov ecx, dword [ebx + 0x10]
movzx edx, byte [ecx]
mov ecx, dword [esi + 8]
test ecx, 0x10000000
mov dword [esp + 8], edx
je 0x100126fd
test dl, 0x38
jne 0x10012860
test ecx, 0x100000
je 0x10012711
cmp edx, 0xc0
jb 0x10012860
mov edx, dword [esp + 0x14]
add dword [ebx + 0x10], 1
mov ecx, dword [ebp]
push edx
mov edx, dword [esi + 8]
call fcn.100125f0
mov dword [esp + 0x14], eax
mov eax, ecx
push eax
mov eax, dword [ebx + 0x18]
call fcn.100125d0
push 0x40
push 0
push edi
mov dword [esp + 0x20], eax
call fcn.10016580
mov byte [edi + 0xd], 0xff
mov al, byte [esi + 3]
add esp, 0x14
test al, al
je 0x1001281a
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push ecx
push ebp
push edx
push 0
movzx eax, al
push eax
push esi
push edi
push ebx
call fcn.10013800
add esp, 0x28
test eax, eax
je 0x10012860
mov al, byte [esi + 2]
test al, al
je 0x1001281a
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push 0
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ebp
push ecx
push 1
movzx edx, al
push edx
push esi
push edi
push ebx
call fcn.10013800
add esp, 0x28
test eax, eax
je 0x10012860
test dword [esi + 8], 0x20000
je 0x1001281a
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
push 0
push eax
movzx eax, byte [esi + 0x10]
push ecx
push ebp
push edx
push 2
push eax
push esi
push edi
push ebx
call fcn.10013800
add esp, 0x28
test eax, eax
je 0x10012860
test dword [esi + 8], 0x40000
je 0x1001281a
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
push 0
push ecx
movzx ecx, byte [esi + 0x11]
push edx
push ebp
push eax
push 3
push ecx
push esi
push edi
push ebx
call fcn.10013800
add esp, 0x28
test eax, eax
je 0x10012860
test dword [esi + 8], 0x200000
je 0x10012832
push ebx
call fcn.10015390
mov esi, eax
add esp, 4
test esi, esi
je 0x10012860
test dword [esi + 8], 0x400000
je 0x10012855
add dword [ebx + 0x14], 0xffffffff
js 0x10012860
mov eax, dword [ebx + 0x10]
mov cl, byte [eax]
add eax, 1
cmp cl, 8
mov byte [esp + 0x24], cl
mov dword [ebx + 0x10], eax
jae 0x10012860
mov edx, dword [ebx + 0x10]
sub edx, dword [ebp + 8]
cmp edx, 0xf
jle 0x100128a5
push 0x40
push 0
push edi
call fcn.10016580
mov eax, dword [esp + 0x28]
mov byte [edi + 0xd], 0xff
mov byte [edi + 8], 1
add esp, 0xc
mov dword [ebp + 4], 0
cmp byte [eax], 0x9b
jne 0x1001289a
or byte [edi + 0x3a], 8
pop esi
mov word [edi + 0x10], 0x3db
mov eax, 1
pop ebp
add esp, 0x18
ret
pop esi
mov eax, 3
pop ebp
add esp, 0x18
ret
mov edx, 1
cmp dword [esp + 0x18], edx
jne 0x100128c0
test byte [esi + 8], 0x10
je 0x100128c0
or dword [ebp + 4], 0x10
or word [edi + 0xa], dx
jmp 0x100128eb
mov eax, dword [esi + 8]
test al, 0x20
je 0x100128d8
test byte [ebp], 0x20
je 0x100128d8
or dword [ebp + 4], 0x20
or word [edi + 0xa], 2
jmp 0x100128eb
test al, 0x40
je 0x100128eb
test byte [ebp], 0x40
je 0x100128eb
or dword [ebp + 4], 0x40
or word [edi + 0xa], 4
mov eax, dword [esi + 8]
mov ecx, eax
and ecx, 0x14000
cmp ecx, 0x14000
jne 0x1001292f
mov eax, dword [esp + 0xc]
or dword [ebp + 4], 0x4000
test eax, eax
je 0x10012a0b
cmp eax, edx
jne 0x10012922
mov ax, word [esi + 0x12]
mov word [edi + 0x10], ax
jmp 0x10012a13
mov cx, word [esi + 0x14]
mov word [edi + 0x10], cx
jmp 0x10012a13
mov ecx, eax
and ecx, 0xc000
cmp ecx, 0xc000
jne 0x10012953
mov dx, word [esi + 4]
mov word [edi + 0x10], dx
or dword [ebp + 4], 0x4000
jmp 0x10012a13
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x1001297d
test eax, 0x10000
je 0x10012970
test eax, 0x1000008
jne 0x10012970
or dword [ebp + 4], 0x2000
mov ax, word [esi + 4]
mov word [edi + 0x10], ax
jmp 0x10012a13
cmp ecx, edx
jne 0x100129d2
or word [edi + 0xa], 0x100
test dword [esi + 8], 0x10000
je 0x10012a0b
or dword [ebp + 4], 0x2000
mov eax, dword [esi + 8]
test eax, 0x80000
je 0x100129bb
cmp dword [esp + 8], 0xc0
jb 0x100129b5
mov cx, word [esi + 4]
mov word [edi + 0x10], cx
jmp 0x10012a13
mov dx, word [esi + 0x12]
jmp 0x10012a0f
test eax, 0x400000
je 0x10012a01
movzx ax, byte [esp + 0x24]
add ax, word [esi + 4]
mov word [edi + 0x10], ax
jmp 0x10012a13
or word [edi + 0xa], 0x200
mov eax, dword [esi + 8]
test eax, 0x4010000
je 0x10012a0b
test eax, 0x4000000
je 0x10012a01
test byte [esp + 0x14], 8
je 0x10012a01
or dword [ebp + 4], 0x2000000
mov ax, word [esi + 0x14]
mov word [edi + 0x10], ax
jmp 0x10012a13
mov cx, word [esi + 0x12]
mov word [edi + 0x10], cx
jmp 0x10012a13
mov dx, word [esi + 4]
mov word [edi + 0x10], dx
test dword [esi + 8], 0x8000
je 0x10012a2c
test dword [ebp], 0x2000
je 0x10012a2c
or dword [ebp + 4], 0x2000
test dword [esi + 8], 0x20000000
je 0x10012a56
mov eax, dword [esi + 0xc]
test al, 4
je 0x10012a43
test byte [esp + 0x14], 8
jne 0x10012a4e
test al, 8
je 0x10012a56
test byte [esp + 0x14], 0x10
je 0x10012a56
mov ax, word [esi + 0x12]
mov word [edi + 0x10], ax
mov eax, dword [esp + 0xc]
and eax, 3
shl eax, 0xa
or word [edi + 0xa], ax
test dword [esi + 8], 0x80000000
movzx eax, word [edi + 0xa]
je 0x10012a78
or eax, 0x40
mov word [edi + 0xa], ax
push ebp
call fcn.10014a30
mov word [edi + 0x38], ax
mov cl, byte [esi + 1]
add esp, 4
cmp byte [edi + 0xc], 0
mov byte [edi + 0x3a], cl
jne 0x10012a95
mov byte [edi + 0xc], 0xff
mov al, byte [edi + 0xd]
cmp al, 0xff
je 0x10012aab
movzx edx, al
mov ax, word [edx*2 + 0x1008bc40]
or word [edi + 0x3c], ax
mov cl, byte [ebx + 0x10]
sub cl, byte [esp + 0x1c]
pop esi
mov byte [edi + 8], cl
mov eax, 1
pop ebp
add esp, 0x18
ret