Function at 0x1052a4d
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
test dword [ebp + 0x10], 0x10000
push esi
mov esi, ecx
je 0x1052acf
and dword [ebp + 0xc], 0x7c037fff
mov eax, dword [ebp + 0xc]
not eax
and dword [esi], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [esi]
and eax, dword [ebp + 0xc]
or eax, ecx
cmp byte [esi + 0x2d], 0xa
mov dword [esi], eax
mov ecx, 0x10000000
jb 0x1052a8c
or eax, ecx
mov dword [esi], eax
mov eax, dword [esi]
test ecx, eax
jne 0x1052a9e
and eax, 0xd7ffffff
mov dword [esi], eax
jmp 0x105319f
test eax, 0x20000000
jne 0x105319f
and eax, 0xfffcffff
mov ecx, esi
mov dword [esi], eax
call fcn.0105291b
test eax, eax
je 0x105319f
mov dword [esi + 0x18], 0x1007f
mov byte [esi + 4], 0
jmp 0x105319f
test byte [ebp + 0x10], 0x80
jne 0x1052af2
test dword [esi], 0x1000000
je 0x1052af2
and dword [ebp + 0xc], 0xffe3ffff
and dword [ebp + 0x10], 0xd7ffffeb
and dword [ebp + 0x14], 0xf7ffffff
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
and eax, 0x44037fff
mov ecx, eax
not ecx
and dword [esi], ecx
mov ecx, dword [esi]
push edi
mov edi, dword [ebp + 8]
mov edx, dword [edi]
and edx, eax
mov eax, dword [ebp + 0x10]
or edx, ecx
and eax, 0xbbfc0000
mov dword [esi], edx
mov ecx, eax
not ecx
and dword [esi], ecx
mov edx, dword [edi]
mov ecx, dword [esi]
and edx, eax
or edx, ecx
mov dword [esi], edx
test bl, 1
je 0x1052b47
mov eax, dword [edi]
and al, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x12c
add eax, 0x190
mov word [esi + 0x10], ax
test ebx, 0x40000000
je 0x1052b55
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
test ebx, 0xbfffffc0
je 0x1052ecc
mov dword [ebp + 8], ebx
and dword [ebp + 8], 0x80000000
je 0x1052b89
test dword [ebp + 0x10], 0x4000
movsx eax, word [edi + 8]
je 0x1052b85
push eax
movsx eax, word [esi + 8]
push eax
call fcn.01052431
mov word [esi + 8], ax
test ebx, 0x10000000
je 0x1052b99
mov ax, word [edi + 0xa]
mov word [esi + 0xa], ax
test ebx, 0x8000000
je 0x1052cb3
test dword [ebp + 0x10], 0x1100
jne 0x1052c39
mov eax, dword [ebp + 0x10]
and eax, 0x2000
mov dword [ebp - 4], eax
je 0x1052c05
mov bl, byte [edi + 4]
test bl, bl
jne 0x1052bd8
movzx eax, byte [esi + 4]
push eax
call fcn.0104a437
test eax, eax
jne 0x1052c39
test bl, bl
je 0x1052c05
mov cl, byte [esi + 4]
cmp cl, 0x13
jae 0x1052c05
movzx eax, cl
lea edx, [eax - 0xc]
cmp edx, 3
jbe 0x1052c05
add eax, 0xffffffd1
cmp eax, 3
jbe 0x1052c05
cmp cl, 0xa
je 0x1052c05
cmp cl, 0x11
je 0x1052c05
test dword [esi], 0x40000
je 0x1052c39
cmp dword [ebp - 4], 0
jne 0x1052cb3
movzx eax, byte [esi + 4]
mov bl, byte [edi + 4]
push eax
call fcn.0104a437
movzx ecx, bl
push ecx
mov dword [ebp - 4], eax
call fcn.0104a437
mov ecx, dword [ebp - 4]
xor ecx, eax
je 0x1052c39
mov al, bl
cmp al, 0xa
je 0x1052c39
cmp al, 0x11
jne 0x1052cb3
test dword [ebp + 0x10], 0x1000
je 0x1052cad
mov al, byte [esi + 4]
cmp al, 0xa
je 0x1052c4d
cmp al, 0x11
jne 0x1052cad
mov al, byte [edi + 4]
cmp al, 0xa
je 0x1052cad
cmp al, 0x11
je 0x1052cad
mov ebx, 0x10c5db4
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x10c6244]
test dword [ebp + 0xc], 0x20000000
je 0x1052c79
movzx eax, word [edi + 6]
jmp 0x1052c7d
movzx eax, word [esi + 6]
cwde
push 0
push eax
call fcn.01053f5d
cmp eax, 0x40000
jne 0x1052ca0
test edx, edx
jne 0x1052ca0
dec dword [0x10c6244]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1052cb3
dec dword [0x10c6244]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov ecx, dword [ebp + 0x10]
mov eax, 0x500
and ecx, eax
cmp ecx, eax
jne 0x1052cef
movzx eax, byte [esi + 4]
movzx ecx, byte [edi + 4]
cmp al, cl
je 0x1052cef
cmp dword [ebp + 8], 0
je 0x1052cef
movzx edx, word [esi + 8]
push edx
push eax
mov eax, dword [ebp + 0x10]
shr eax, 9
and al, 1
movzx eax, al
push ecx
push eax
call fcn.0104da58
mov word [esi + 8], ax
test dword [ebp + 0xc], 0x20000000
je 0x1052d8c
push 0x10c5db4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x10c6244]
mov al, byte [edi + 5]
mov byte [esi + 5], al
movzx eax, word [edi + 6]
mov word [esi + 6], ax
cwde
push eax
call fcn.0105372a
test eax, eax
je 0x1052d7b
xor ecx, ecx
push ecx
push ecx
push ecx
push 2
push eax
call fcn.01066076
mov ebx, 0xf00000
and eax, ebx
xor edx, edx
or eax, edx
je 0x1052d7b
movzx eax, byte [esi + 4]
sub eax, 0xc
cmp eax, 3
jbe 0x1052d7b
lea eax, [ebp - 8]
push eax
movsx eax, word [esi + 6]
push eax
call fcn.01053f5d
or eax, edx
je 0x1052d7b
and dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
and dword [ebp - 4], 0
or eax, dword [ebp - 4]
je 0x1052d7b
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.01051e6e
mov byte [esi + 4], al
dec dword [0x10c6244]
push 0x10c5db4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test dword [ebp + 0x10], 0x8000
je 0x1052d99
and dword [ebp + 0xc], 0
test dword [ebp + 0xc], 0x7ffffc0
je 0x1052ecc
mov eax, dword [ebp + 0xc]
and eax, 0x400001
mov ecx, 0x400000
cmp eax, ecx
jne 0x1052dd4
mov ax, word [edi + 0x10]
or dword [esi], 1
mov word [esi + 0x10], ax
mov eax, dword [esi]
mov edx, 0x227
cmp word [esi + 0x10], dx
jae 0x1052dd4
and eax, 0xfffffffe
mov dword [esi], eax
test dword [ebp + 0xc], 0x4000000
je 0x1052de3
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov edx, dword [ebp + 0xc]
mov ebx, 0x800000
test edx, 0x2000000
je 0x1052e41
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
test dword [ebp + 0x14], ecx
jne 0x1052e28
test dword [ebp + 0x14], ebx
jne 0x1052e3a
test edx, 0x8000000
jne 0x1052e3a
mov al, byte [esi + 4]
movzx ecx, al
sub ecx, 0xc
cmp ecx, 3
jbe 0x1052e3a
cmp al, 0xa
je 0x1052e3a
mov eax, 0x3ff
test word [esi + 0x18], ax
je 0x1052e3a
movzx eax, word [esi + 0x18]
push 0
push eax
call fcn.0104dcd8
mov edx, dword [ebp + 0xc]
mov byte [esi + 4], al
and dword [ebp + 0x14], 0xff3fffff
test edx, 0x1000000
je 0x1052e4f
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
test edx, 0x200000
je 0x1052e5f
mov ax, word [edi + 0x12]
mov word [esi + 0x12], ax
test edx, 0x100000
je 0x1052e6f
mov ax, word [edi + 0x22]
mov word [esi + 0x22], ax
test edx, 0x80000
je 0x1052e7f
mov ax, word [edi + 0x20]
mov word [esi + 0x20], ax
test ebx, edx
je 0x1052ea6
mov al, byte [edi + 0x24]
mov byte [esi + 0x24], al
test dl, 4
jne 0x1052ea0
and dword [esi], 0xfffffffb
cmp byte [esi + 0x24], 0
mov eax, dword [esi]
je 0x1052ea6
or eax, 4
mov dword [esi], eax
jmp 0x1052ea6
mov al, byte [edi + 0x27]
mov byte [esi + 0x27], al
test edx, 0x40000
je 0x1052ebe
mov al, byte [edi + 0x25]
cmp al, 0x12
jbe 0x1052ebb
test byte [ebp + 0x10], 0x80
je 0x1052ebe
mov byte [esi + 0x25], al
test edx, 0x8000
je 0x1052ecc
mov al, byte [edi + 0x26]
mov byte [esi + 0x26], al
mov ecx, dword [esi]
mov ebx, 0x10000000
xor eax, eax
test ebx, ecx
jne 0x1052ee3
and ecx, 0xd7ffffff
mov dword [esi], ecx
jmp 0x1052f09
test ecx, 0x20000000
jne 0x1052f09
and ecx, 0xfffcffff
mov dword [esi], ecx
mov ecx, esi
call fcn.0105291b
test eax, eax
je 0x1052f09
mov dword [esi + 0x18], 0x1007f
mov byte [esi + 4], 0
test dword [ebp + 0x14], 0x100
je 0x1052f1f
mov cl, byte [edi + 0x2b]
and dword [ebp + 0x14], 0xfffffeff
mov byte [esi + 0x2b], cl
test dword [ebp + 0x10], 0x8000
jne 0x105319d
test byte [ebp + 0x10], 8
jne 0x1052f3e
mov ecx, dword [esi]
and ecx, 0x30000000
cmp ecx, ebx
jne 0x1052f42
test eax, eax
jne 0x1052f76
movzx eax, word [esi + 0x18]
push 0
push eax
call fcn.0104dcd8
movzx ecx, byte [esi + 4]
cmp eax, ecx
je 0x1052f76
movzx eax, al
sub eax, 0xc
cmp eax, 3
jbe 0x1052f76
lea eax, [ecx - 0xc]
cmp eax, 3
jbe 0x1052f76
push ecx
call fcn.0104dd6c
test eax, eax
je 0x1052f76
mov dword [esi + 0x18], eax
cmp dword [ebp + 0x10], 0
je 0x1053110
test byte [ebp + 0x10], 4
je 0x1052f93
mov ax, word [edi + 0x32]
mov word [esi + 0x32], ax
jmp 0x105308f
test byte [ebp + 0x10], 0x10
je 0x105308f
movzx eax, word [esi + 0x30]
movzx ecx, word [edi + 0x30]
cmp ax, cx
je 0x105308f
cmp cx, 0xffff
jne 0x1052fc0
or eax, 0xffffffff
mov word [esi + 0x30], ax
jmp 0x105308f
xor ecx, ecx
mov word [ebp - 0x10], cx
mov byte [ebp - 0xe], cl
lea ecx, [ebp - 0x10]
mov ebx, 0xff676981
push ecx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.0104fcbf
lea eax, [ebp - 0x20]
push eax
movzx eax, word [edi + 0x30]
push eax
call fcn.0104fcbf
test al, al
je 0x105308a
mov cl, byte [ebp - 0x20]
test cl, 1
je 0x1053017
mov eax, 0xfffe
and word [ebp - 0x10], ax
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x1053014
or word [ebp - 0x10], 1
mov dword [ebp - 0xc], eax
test cl, 2
je 0x1053034
mov eax, 0xfffd
and word [ebp - 0x10], ax
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x1053031
or word [ebp - 0x10], 2
mov dword [ebp - 8], eax
test cl, 4
je 0x1053051
mov eax, 0xfffb
and word [ebp - 0x10], ax
mov al, byte [ebp - 0x1e]
test al, al
je 0x105304e
or word [ebp - 0x10], 4
mov byte [ebp - 0xe], al
mov eax, 0xfff7
test cl, 8
je 0x1053070
mov ecx, eax
and word [ebp - 0x10], cx
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x105306d
or word [ebp - 0x10], 8
mov dword [ebp - 4], ecx
test byte [ebp - 0x10], 4
jne 0x105307d
and word [ebp - 0x10], ax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0104fb61
mov word [esi + 0x30], ax
mov ebx, 0x10000000
mov eax, dword [ebp + 0x10]
test eax, 0x2000
je 0x10530a1
mov cx, word [edi + 0x28]
mov word [esi + 0x28], cx
test al, al
jns 0x10530f8
cmp byte [esi + 0x2d], 0
je 0x10530b4
test al, 0x20
je 0x10530b4
inc byte [esi + 0x2c]
jmp 0x10530f8
mov cl, byte [edi + 0x2c]
mov byte [esi + 0x2c], cl
cmp byte [esi + 0x2c], 0
mov byte [esi + 0x2e], 0
mov byte [esi + 0x2d], 0
mov cl, byte [edi + 0x3c]
mov byte [esi + 0x3c], cl
je 0x10530da
mov cl, byte [edi + 0x2d]
mov byte [esi + 0x2d], cl
mov cl, byte [edi + 0x2e]
mov byte [esi + 0x2e], cl
mov ecx, dword [esi]
and ecx, eax
test ecx, 0x1000000
je 0x10530f8
mov cl, byte [edi + 0x2f]
mov byte [esi + 0x2f], cl
mov cl, byte [edi + 0x2b]
and dword [esi], 0xd7ffffff
mov byte [esi + 0x2b], cl
test al, 0x40
je 0x1053102
mov al, byte [edi + 0x2c]
add byte [esi + 0x2c], al
movzx eax, byte [esi + 0x2d]
sub eax, 0xa
cmp eax, 0x17
ja 0x1053110
or dword [esi], ebx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x105319d
and eax, 0x40000ff
mov ecx, eax
not ecx
and word [esi + 0x34], cx
movzx ecx, word [esi + 0x34]
mov dx, word [edi + 0x34]
and dx, ax
mov eax, dword [ebp + 0x14]
or dx, cx
mov word [esi + 0x34], dx
test eax, 0x20000000
je 0x105314a
mov cl, byte [edi + 0x38]
mov byte [esi + 0x38], cl
test eax, eax
jns 0x1053154
mov cl, byte [edi + 0x39]
mov byte [esi + 0x39], cl
test eax, 0x40000000
je 0x1053161
mov cl, byte [edi + 0x3a]
mov byte [esi + 0x3a], cl
test ebx, eax
je 0x105316b
mov cl, byte [edi + 0x3b]
mov byte [esi + 0x3b], cl
test eax, 0x8000000
je 0x105317a
mov cx, word [edi + 0x36]
mov word [esi + 0x36], cx
test eax, 0x4000000
je 0x1053190
movzx eax, byte [edi + 0x3e]
push eax
mov ecx, esi
call fcn.0105214e
mov eax, dword [ebp + 0x14]
test eax, 0x2000000
je 0x105319d
mov al, byte [edi + 0x3d]
mov byte [esi + 0x3d], al
pop edi
pop ebx
xor eax, eax
pop esi
leave
ret 0x10