Function at 0x1001b060
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov bl, dl
mov esi, ecx
mov eax, dword [edi]
and eax, 0x400000
or eax, 0
je 0x1001b0a7
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x400000
or eax, 0
je 0x1001b091
test bl, bl
je 0x1001b0a7
mov al, byte [edi + 0x7f]
xor al, byte [esi + 0x7f]
and al, 1
mov dword [esi + 4], edx
xor byte [esi + 0x7f], al
or ecx, 0x400000
mov dword [esi], ecx
mov eax, dword [edi]
and eax, 0x800000
or eax, 0
je 0x1001b0de
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x800000
or eax, 0
je 0x1001b0c8
test bl, bl
je 0x1001b0de
mov al, byte [edi + 0x7f]
xor al, byte [esi + 0x7f]
and al, 2
mov dword [esi + 4], edx
xor byte [esi + 0x7f], al
or ecx, 0x800000
mov dword [esi], ecx
mov eax, dword [edi]
and eax, 0x1000000
or eax, 0
je 0x1001b115
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x1000000
or eax, 0
je 0x1001b0ff
test bl, bl
je 0x1001b115
mov al, byte [edi + 0x7f]
xor al, byte [esi + 0x7f]
and al, 4
mov dword [esi + 4], edx
xor byte [esi + 0x7f], al
or ecx, 0x1000000
mov dword [esi], ecx
mov eax, dword [edi]
and eax, 0x2000000
or eax, 0
je 0x1001b14c
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x2000000
or eax, 0
je 0x1001b136
test bl, bl
je 0x1001b14c
mov al, byte [edi + 0x7f]
xor al, byte [esi + 0x7f]
and al, 8
mov dword [esi + 4], edx
xor byte [esi + 0x7f], al
or ecx, 0x2000000
mov dword [esi], ecx
mov eax, dword [edi]
and eax, 0x200000
or eax, 0
je 0x1001b17e
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x200000
or eax, 0
je 0x1001b16d
test bl, bl
je 0x1001b17e
mov al, byte [edi + 0x7e]
or ecx, 0x200000
mov byte [esi + 0x7e], al
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 0x40000
or eax, 0
je 0x1001b1b2
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x40000
or eax, 0
je 0x1001b19f
test bl, bl
je 0x1001b1b2
mov ax, word [edi + 0x70]
or ecx, 0x40000
mov word [esi + 0x70], ax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 0x80000
or eax, 0
je 0x1001b1ef
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x80000
or eax, 0
je 0x1001b1d3
test bl, bl
je 0x1001b1ef
movzx eax, word [edi + 0x72]
cmp eax, 3
jae 0x1001b9a5
or ecx, 0x80000
mov word [esi + 0x72], ax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 0x100000
or eax, 0
je 0x1001b221
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x100000
or eax, 0
je 0x1001b210
test bl, bl
je 0x1001b221
mov eax, dword [edi + 0x68]
or ecx, 0x100000
mov dword [esi + 0x68], eax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 0x100
or eax, 0
je 0x1001b253
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x100
or eax, 0
je 0x1001b242
test bl, bl
je 0x1001b253
mov eax, dword [edi + 0x44]
or ecx, 0x100
mov dword [esi + 0x44], eax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 0x200
or eax, 0
je 0x1001b285
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x200
or eax, 0
je 0x1001b274
test bl, bl
je 0x1001b285
mov eax, dword [edi + 0x48]
or ecx, 0x200
mov dword [esi + 0x48], eax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 0x400
or eax, 0
je 0x1001b2b7
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x400
or eax, 0
je 0x1001b2a6
test bl, bl
je 0x1001b2b7
mov eax, dword [edi + 0x4c]
or ecx, 0x400
mov dword [esi + 0x4c], eax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 0x800
or eax, 0
je 0x1001b2e9
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x800
or eax, 0
je 0x1001b2d8
test bl, bl
je 0x1001b2e9
mov eax, dword [edi + 0x50]
or ecx, 0x800
mov dword [esi + 0x50], eax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 0x1000
or eax, 0
je 0x1001b31b
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x1000
or eax, 0
je 0x1001b30a
test bl, bl
je 0x1001b31b
mov eax, dword [edi + 0x54]
or ecx, 0x1000
mov dword [esi + 0x54], eax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 0x2000
or eax, 0
je 0x1001b358
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x2000
or eax, 0
je 0x1001b33c
test bl, bl
je 0x1001b358
mov eax, dword [edi + 0x58]
cmp eax, 0x3fff
ja 0x1001b9a5
or ecx, 0x2000
mov dword [esi + 0x58], eax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 0x4000
or eax, 0
je 0x1001b395
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x4000
or eax, 0
je 0x1001b379
test bl, bl
je 0x1001b395
mov eax, dword [edi + 0x5c]
cmp eax, 0x927c0
ja 0x1001b9a5
or ecx, 0x4000
mov dword [esi + 0x5c], eax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 0x8000
or eax, 0
je 0x1001b3c7
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x8000
or eax, 0
je 0x1001b3b6
test bl, bl
je 0x1001b3c7
mov eax, dword [edi + 0x60]
or ecx, 0x8000
mov dword [esi + 0x60], eax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 4
or eax, 0
je 0x1001b40f
mov ecx, dword [esi]
mov eax, ecx
and eax, 4
or eax, 0
je 0x1001b3e1
test bl, bl
je 0x1001b40f
mov edx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
cmp edx, 0x3fffffff
ja 0x1001b9a5
jb 0x1001b3fe
cmp eax, 0xffffffff
ja 0x1001b9a5
mov dword [esi + 0x20], eax
or ecx, 4
mov eax, dword [esi + 4]
mov dword [esi + 0x24], edx
mov dword [esi], ecx
mov dword [esi + 4], eax
mov eax, dword [edi]
and eax, 2
or eax, 0
je 0x1001b457
mov ecx, dword [esi]
mov eax, ecx
and eax, 2
or eax, 0
je 0x1001b429
test bl, bl
je 0x1001b457
mov edx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
cmp edx, 0x3fffffff
ja 0x1001b9a5
jb 0x1001b446
cmp eax, 0xffffffff
ja 0x1001b9a5
mov dword [esi + 0x18], eax
or ecx, 2
mov eax, dword [esi + 4]
mov dword [esi + 0x1c], edx
mov dword [esi], ecx
mov dword [esi + 4], eax
mov eax, dword [edi]
and eax, 0x10000
or eax, 0
je 0x1001b48b
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x10000
or eax, 0
je 0x1001b478
test bl, bl
je 0x1001b48b
mov ax, word [edi + 0x6c]
or ecx, 0x10000
mov word [esi + 0x6c], ax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 0x20000
or eax, 0
je 0x1001b4bf
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x20000
or eax, 0
je 0x1001b4ac
test bl, bl
je 0x1001b4bf
mov ax, word [edi + 0x6e]
or ecx, 0x20000
mov word [esi + 0x6e], ax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 8
or eax, 0
je 0x1001b4ea
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 8
or eax, 0
je 0x1001b4dc
test bl, bl
je 0x1001b4ea
mov eax, dword [edi + 0x30]
or ecx, 8
mov dword [esi + 0x30], eax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 8
or eax, 0
je 0x1001b515
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 8
or eax, 0
je 0x1001b507
test bl, bl
je 0x1001b515
mov eax, dword [edi + 0x30]
or ecx, 8
mov dword [esi + 0x30], eax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 0x20
or eax, 0
je 0x1001b540
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x20
or eax, 0
je 0x1001b532
test bl, bl
je 0x1001b540
mov eax, dword [edi + 0x38]
or ecx, 0x20
mov dword [esi + 0x38], eax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 0x40
or eax, 0
je 0x1001b576
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x40
or eax, 0
je 0x1001b55d
test bl, bl
je 0x1001b576
mov eax, dword [edi + 0x3c]
cmp eax, 0x1000
jb 0x1001b9a5
or ecx, 0x40
mov dword [esi + 0x3c], eax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 0x80
or eax, 0
je 0x1001b5a8
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x80
or eax, 0
je 0x1001b597
test bl, bl
je 0x1001b5a8
mov eax, dword [edi + 0x40]
or ecx, 0x80
mov dword [esi + 0x40], eax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
and eax, 1
or eax, 0
je 0x1001b5ec
mov ecx, dword [esi]
mov eax, ecx
and eax, 1
or eax, 0
je 0x1001b5c2
test bl, bl
je 0x1001b5ec
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
cmp edx, 0x40
ja 0x1001b9a5
jb 0x1001b5db
test eax, eax
jne 0x1001b9a5
mov dword [esi + 0x10], eax
or ecx, 1
mov eax, dword [esi + 4]
mov dword [esi + 0x14], edx
mov dword [esi], ecx
mov dword [esi + 4], eax
mov eax, dword [edi]
and eax, 0x4000000
or eax, 0
je 0x1001b631
mov edx, dword [esi]
mov eax, edx
and eax, 0x4000000
or eax, 0
je 0x1001b60a
test bl, bl
je 0x1001b631
mov cl, byte [edi + 0x7f]
and cl, 0x30
cmp cl, 0x20
ja 0x1001b9a5
mov al, byte [esi + 0x7f]
and al, 0xcf
or al, cl
or edx, 0x4000000
mov byte [esi + 0x7f], al
mov eax, dword [esi + 4]
mov dword [esi], edx
mov dword [esi + 4], eax
mov eax, dword [edi]
and eax, 0x10000000
or eax, 0
je 0x1001b668
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x10000000
or eax, 0
je 0x1001b652
test bl, bl
je 0x1001b668
mov al, byte [edi + 0x7f]
xor al, byte [esi + 0x7f]
and al, 0x40
mov dword [esi + 4], edx
xor byte [esi + 0x7f], al
or ecx, 0x10000000
mov dword [esi], ecx
mov eax, dword [edi]
and eax, 0x8000000
or eax, 0
je 0x1001b6e7
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
and eax, 0x8000000
or eax, 0
je 0x1001b68b
test bl, bl
jne 0x1001b691
jmp 0x1001b6b7
cmp dword [esi + 8], 0
je 0x1001b6b7
push dword [esi + 8]
push 0
push dword [0x10059a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], 0xf7ffffff
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [esi + 8], 0
mov dword [esi + 4], eax
and ecx, 0x8000000
or ecx, 0
jne 0x1001b6e7
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x1001b6e7
xor dl, dl
call fcn.1001af50
mov dword [esi + 8], eax
test eax, eax
je 0x1001b9a5
mov eax, dword [esi + 4]
or dword [esi], 0x8000000
mov dword [esi + 4], eax
mov bh, byte [ebp + 8]
test bh, bh
je 0x1001b7da
mov ecx, dword [esi]
mov eax, ecx
and eax, 0x20000000
mov dword [ebp - 4], eax
or eax, 0
je 0x1001b709
movzx edx, word [esi + 0x74]
jmp 0x1001b70e
mov edx, 0x4e0
mov eax, ecx
and eax, 0x40000000
mov dword [ebp - 8], eax
or eax, 0
je 0x1001b723
movzx ecx, word [esi + 0x76]
jmp 0x1001b728
mov ecx, 0x5dc
mov eax, dword [edi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
and eax, 0x20000000
mov dword [ebp - 0xc], eax
or eax, 0
je 0x1001b766
mov eax, dword [ebp - 4]
or eax, 0
je 0x1001b749
test bl, bl
je 0x1001b766
movzx edx, word [edi + 0x74]
mov eax, 0x4e0
cmp dx, ax
jae 0x1001b75b
mov edx, eax
jmp 0x1001b766
mov eax, 0x5dc
cmp dx, ax
cmova edx, eax
mov eax, dword [edi]
and eax, 0x40000000
or eax, 0
je 0x1001b79b
mov eax, dword [ebp - 8]
or eax, 0
je 0x1001b77e
test bl, bl
je 0x1001b79b
movzx ecx, word [edi + 0x76]
mov eax, 0x4e0
cmp cx, ax
jae 0x1001b790
mov ecx, eax
jmp 0x1001b79b
mov eax, 0x5dc
cmp cx, ax
cmova ecx, eax
cmp dx, cx
ja 0x1001b9a5
mov eax, dword [ebp - 0xc]
or eax, 0
je 0x1001b7b8
mov eax, dword [esi + 4]
or dword [esi], 0x20000000
mov dword [esi + 4], eax
mov eax, dword [edi]
and eax, 0x40000000
or eax, 0
je 0x1001b7d0
mov eax, dword [esi + 4]
or dword [esi], 0x40000000
mov dword [esi + 4], eax
mov word [esi + 0x74], dx
mov word [esi + 0x76], cx
jmp 0x1001b7ea
mov eax, dword [edi]
and eax, 0x60000000
or eax, 0
jne 0x1001b9a5
mov eax, dword [edi]
and eax, 0x80000000
or eax, 0
je 0x1001b822
mov edx, dword [esi]
mov eax, edx
and eax, 0x80000000
or eax, 0
je 0x1001b808
test bl, bl
je 0x1001b822
mov eax, dword [edi + 0x28]
or edx, 0x80000000
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x2c], ecx
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [edi + 4]
xor eax, eax
and ecx, 1
or eax, ecx
je 0x1001b856
mov edx, dword [esi + 4]
xor eax, eax
mov ecx, edx
and ecx, 1
or eax, ecx
je 0x1001b840
test bl, bl
je 0x1001b856
mov al, byte [edi + 0x81]
or edx, 1
mov byte [esi + 0x81], al
mov eax, dword [esi]
mov dword [esi], eax
mov dword [esi + 4], edx
mov ecx, dword [edi + 4]
xor eax, eax
and ecx, 2
or eax, ecx
je 0x1001b886
mov edx, dword [esi + 4]
xor eax, eax
mov ecx, edx
and ecx, 2
or eax, ecx
je 0x1001b874
test bl, bl
je 0x1001b886
mov ax, word [edi + 0x78]
or edx, 2
mov word [esi + 0x78], ax
mov eax, dword [esi]
mov dword [esi], eax
mov dword [esi + 4], edx
mov ecx, dword [edi + 4]
xor eax, eax
and ecx, 4
or eax, ecx
je 0x1001b8b6
mov edx, dword [esi + 4]
xor eax, eax
mov ecx, edx
and ecx, 4
or eax, ecx
je 0x1001b8a4
test bl, bl
je 0x1001b8b6
mov ax, word [edi + 0x7a]
or edx, 4
mov word [esi + 0x7a], ax
mov eax, dword [esi]
mov dword [esi], eax
mov dword [esi + 4], edx
mov ecx, dword [edi + 4]
xor eax, eax
and ecx, 8
or eax, ecx
je 0x1001b8e6
mov edx, dword [esi + 4]
xor eax, eax
mov ecx, edx
and ecx, 8
or eax, ecx
je 0x1001b8d4
test bl, bl
je 0x1001b8e6
mov ax, word [edi + 0x7c]
or edx, 8
mov word [esi + 0x7c], ax
mov eax, dword [esi]
mov dword [esi], eax
mov dword [esi + 4], edx
mov ecx, dword [edi + 4]
xor eax, eax
and ecx, 0x10
or eax, ecx
je 0x1001b914
mov edx, dword [esi + 4]
xor eax, eax
mov ecx, edx
and ecx, 0x10
or eax, ecx
je 0x1001b904
test bl, bl
je 0x1001b914
mov eax, dword [edi + 0x64]
or edx, 0x10
mov dword [esi + 0x64], eax
mov eax, dword [esi]
mov dword [esi], eax
mov dword [esi + 4], edx
mov ecx, dword [edi + 4]
xor eax, eax
and ecx, 0x20
or eax, ecx
je 0x1001b94a
mov edx, dword [esi + 4]
xor eax, eax
mov ecx, edx
and ecx, 0x20
or eax, ecx
je 0x1001b932
test bl, bl
je 0x1001b94a
mov al, byte [edi + 0x7f]
xor al, byte [esi + 0x7f]
and al, 0x7f
xor al, byte [edi + 0x7f]
or edx, 0x20
mov byte [esi + 0x7f], al
mov eax, dword [esi]
mov dword [esi], eax
mov dword [esi + 4], edx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
shr ecx, 6
and ecx, 1
test bh, bh
je 0x1001b997
or ecx, 0
je 0x1001b99c
mov edx, dword [esi + 4]
xor eax, eax
mov ecx, edx
and ecx, 0x40
or eax, ecx
je 0x1001b970
test bl, bl
je 0x1001b99c
mov al, byte [edi + 0x80]
xor al, byte [esi + 0x80]
and al, 1
xor byte [esi + 0x80], al
or edx, 0x40
mov eax, dword [esi]
mov dword [esi], eax
mov al, 1
mov dword [esi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or ecx, 0
jne 0x1001b9a5
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret