Function at 0x1001aaff
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
xor eax, eax
test dword [esi + 8], 0x80000
push edi
mov dword [ebp - 0xc], eax
je 0x1001ab2a
mov ecx, dword [esi + 0x1c]
sub ecx, dword [esi + 0x40]
mov dword [ebp - 8], 1
cmp ecx, dword [esi + 0x24]
jbe 0x1001ab2d
mov dword [ebp - 8], eax
cmp dword [esi], eax
jne 0x1001ab4d
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x8c]
mov ecx, dword [ecx]
sub ecx, edx
cmp ecx, 0x14ccc
jb 0x1001ab4d
mov ecx, dword [esi + 0x74]
add ecx, edx
jmp 0x1001ab53
lea ecx, [esi + 0x39272]
mov edx, dword [esi + 0x2c]
mov dword [esi + 0x30], ecx
mov dword [ebp - 4], ecx
add ecx, 0x14cbc
mov dword [esi + 0x34], ecx
mov cl, byte [esi + 0x38]
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
shr byte [edx], cl
xor ecx, ecx
push 8
pop edx
cmp dword [esi + 0x38], edx
sete cl
sub dword [esi + 0x28], ecx
test dword [esi + 8], 0x1000
je 0x1001abef
cmp dword [esi + 0x64], eax
jne 0x1001abef
mov ecx, dword [esi + 0x44]
push 0x78
pop edi
shl edi, cl
add ecx, edx
mov dword [esi + 0x44], ecx
or dword [esi + 0x48], edi
cmp ecx, edx
jb 0x1001abbd
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x1001abb0
mov bl, byte [esi + 0x48]
mov byte [ecx], bl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edx
jae 0x1001aba0
mov ecx, dword [esi + 0x44]
xor edi, edi
inc edi
shl edi, cl
add ecx, 8
mov dword [esi + 0x44], ecx
or dword [esi + 0x48], edi
cmp ecx, edx
jb 0x1001abef
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x1001abe2
mov bl, byte [esi + 0x48]
mov byte [ecx], bl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edx
jae 0x1001abd2
mov ecx, dword [esi + 0x44]
xor ebx, ebx
cmp dword [ebp + 8], 4
sete bl
shl ebx, cl
or dword [esi + 0x48], ebx
inc ecx
mov dword [esi + 0x44], ecx
cmp ecx, edx
jb 0x1001ac25
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x1001ac18
mov bl, byte [esi + 0x48]
mov byte [ecx], bl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edx
jae 0x1001ac08
mov ecx, dword [esi + 0x48]
mov edi, dword [esi + 0x30]
mov ebx, dword [esi + 0x44]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 8], eax
jne 0x1001ac6c
test dword [esi + 8], 0x40000
jne 0x1001ac45
cmp dword [esi + 0x3c], 0x30
jae 0x1001ac48
xor eax, eax
inc eax
push eax
mov eax, esi
call fcn.1001aade
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x1001ad78
mov eax, dword [esi + 0x30]
sub eax, edi
inc eax
cmp eax, ecx
jb 0x1001ad78
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x24]
ja 0x1001ad78
xor eax, eax
mov ecx, ebx
shl eax, cl
push 8
add ebx, 2
pop edx
or eax, dword [ebp - 0x10]
mov dword [esi + 0x30], edi
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], ebx
cmp ebx, edx
jb 0x1001acb4
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x1001aca7
mov cl, byte [esi + 0x48]
mov byte [eax], cl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edx
jae 0x1001ac97
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1001ace2
xor eax, eax
shl eax, cl
mov dword [esi + 0x44], edx
or dword [esi + 0x48], eax
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x1001acd5
mov cl, byte [esi + 0x48]
mov byte [eax], cl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edx
jae 0x1001acc5
push 2
pop edi
mov ecx, dword [esi + 0x44]
movzx eax, word [esi + 0x3c]
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 0x10]
mov dword [esi + 0x44], eax
cmp eax, edx
jb 0x1001ad18
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x1001ad0b
mov cl, byte [esi + 0x48]
mov byte [eax], cl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edx
jae 0x1001acfb
xor dword [esi + 0x3c], 0xffff
mov eax, dword [esi + 0x3c]
dec edi
test edi, edi
jne 0x1001ace5
xor edx, edx
test eax, eax
jbe 0x1001ad96
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
add eax, edx
and eax, 0x7fff
movzx eax, byte [eax + esi + 0x90]
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x1001ad70
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x1001ad62
mov cl, byte [esi + 0x48]
mov byte [eax], cl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x1001ad52
inc edx
cmp edx, dword [esi + 0x3c]
jb 0x1001ad2d
jmp 0x1001ad96
cmp dword [ebp - 0xc], 0
jne 0x1001ad96
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x30], edi
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], ebx
call fcn.1001a814
mov eax, esi
call fcn.1001a8b7
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x1001aeca
mov ecx, dword [esi + 0x44]
push 4
pop edi
cmp dword [ebp + 8], edi
jne 0x1001ae2b
cmp ecx, ebx
je 0x1001adda
xor eax, eax
shl eax, cl
push 8
pop ecx
mov dword [esi + 0x44], ecx
or dword [esi + 0x48], eax
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x1001adcd
mov dl, byte [esi + 0x48]
mov byte [eax], dl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], ecx
jae 0x1001adbd
test dword [esi + 8], 0x1000
je 0x1001aeca
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x44]
mov eax, edx
shr eax, 0x18
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x1001ae20
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x1001ae12
mov cl, byte [esi + 0x48]
mov byte [eax], cl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x1001ae02
shl edx, 8
dec edi
jne 0x1001adea
jmp 0x1001aeca
xor eax, eax
shl eax, cl
push 8
pop edx
or dword [esi + 0x48], eax
lea eax, [ecx + 3]
mov dword [esi + 0x44], eax
cmp eax, edx
jb 0x1001ae5c
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x1001ae4f
mov cl, byte [esi + 0x48]
mov byte [eax], cl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edx
jae 0x1001ae3f
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1001ae8a
xor eax, eax
shl eax, cl
mov dword [esi + 0x44], edx
or dword [esi + 0x48], eax
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x1001ae7d
mov cl, byte [esi + 0x48]
mov byte [eax], cl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edx
jae 0x1001ae6d
push 2
pop edi
mov ecx, dword [esi + 0x44]
movzx eax, bx
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 0x10]
mov dword [esi + 0x44], eax
cmp eax, edx
jb 0x1001aebf
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x1001aeb2
mov cl, byte [esi + 0x48]
mov byte [eax], cl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edx
jae 0x1001aea2
dec edi
xor ebx, 0xffff
test edi, edi
jne 0x1001ae8d
push 0x240
xor ebx, ebx
lea eax, [esi + 0x8192]
push ebx
push eax
call sub.ntdll.dll_memset
push 0x40
lea eax, [esi + 0x83d2]
push ebx
push eax
call sub.ntdll.dll_memset
mov edi, dword [esi + 0x30]
lea eax, [esi + 0x9273]
mov dword [esi + 0x28], eax
lea eax, [esi + 0x9272]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x3c]
add dword [esi + 0x40], eax
add esp, 0x18
inc dword [esi + 0x64]
sub edi, dword [ebp - 4]
mov dword [esi + 0x38], 8
mov dword [esi + 0x3c], ebx
je 0x1001af8b
cmp dword [esi], ebx
je 0x1001af48
mov eax, dword [esi + 0x84]
sub eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [ecx], eax
push dword [esi + 4]
lea eax, [esi + 0x39272]
push edi
push eax
call dword [esi]
test eax, eax
jne 0x1001af8b
or eax, 0xffffffff
mov dword [esi + 0x6c], eax
jmp 0x1001af8e
lea ecx, [esi + 0x39272]
cmp dword [ebp - 4], ecx
jne 0x1001af85
mov edx, dword [esi + 0x7c]
mov eax, dword [esi + 0x8c]
mov ebx, dword [edx]
sub ebx, eax
cmp edi, ebx
jae 0x1001af66
mov ebx, edi
push ebx
push ecx
mov ecx, dword [esi + 0x74]
add ecx, eax
push ecx
call fcn.10019c4d
add dword [esi + 0x8c], ebx
sub edi, ebx
je 0x1001af8b
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], edi
jmp 0x1001af8b
add dword [esi + 0x8c], edi
mov eax, dword [esi + 0x5c]
pop edi
pop esi
pop ebx
leave
ret 4