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

Disassembly:
sub esp, 0xc8
push ebx
mov ebx, dword [esp + 0xd0]
xor ecx, ecx
push ebp
mov eax, dword [ebx + 0x48]
xor ebp, ebp
push esi
push edi
mov cl, byte [eax + 1]
mov dword [esp + 0x10], ebp
mov eax, ecx
mov dword [esp + 0x14], fcn.1000a340
dec eax
cdq
and edx, 7
add eax, edx
mov edx, dword [ebx + 0x3c]
sar eax, 3
mov edi, dword [edx + 0x38]
inc al
mov byte [esp + 0x18], al
mov eax, dword [ebx + 4]
test eax, eax
mov dword [esp + 0x28], edi
jne 0x1000ad52
mov dword [esp + 0x14], fcn.1000c280
mov eax, dword [ebx + 0x40]
xor ecx, ecx
push pe_nt_image_headers32
lea edx, [esp + 0x3c]
mov cl, byte [eax + 1]
push 0
inc ecx
push edx
shr ecx, 1
mov esi, ecx
mov dword [esp + 0x3c], esi
call fcn.100051c0
add esp, 0xc
lea eax, [esp + 0xb8]
push 0x20
push 0
push eax
call fcn.100051c0
add esp, 0xc
test esi, esi
jle 0x1000aec2
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], ecx
movsx eax, byte [ecx]
xor edx, edx
mov dl, byte [ecx + esi]
test eax, eax
mov dword [esp + 0x34], edx
je 0x1000aeae
test eax, eax
mov ebp, 1
jge 0x1000adc4
or ebp, 0xffffffff
neg eax
lea eax, [eax + eax*2 + 0x1000f695]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x20], eax
jmp 0x1000addb
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
movsx eax, byte [ecx + eax]
test eax, eax
je 0x1000ae8c
test eax, eax
mov esi, 1
jge 0x1000adf9
or esi, 0xffffffff
neg eax
mov edx, dword [esp + 0x34]
lea eax, [eax + edx - 1]
cmp eax, edi
jl 0x1000ae07
sub eax, edi
test eax, eax
jne 0x1000ae24
imul esi, ebp
mov eax, dword [esp + 0x10]
test esi, esi
jge 0x1000ae1d
inc eax
mov dword [esp + 0x10], eax
jmp 0x1000ae8c
dec eax
mov dword [esp + 0x10], eax
jmp 0x1000ae8c
mov edx, dword [esp + 0x18]
dec eax
and edx, 0xff
mov ecx, eax
push edx
and ecx, 3
cdq
and edx, 3
add eax, edx
shl ecx, 5
sar eax, 2
push eax
mov eax, dword [ebx + 0x44]
lea edi, [esp + ecx + 0x40]
lea ecx, [esp + 0xc0]
push eax
push ecx
call fcn.1000acd0
imul esi, ebp
add esp, 0x10
test esi, esi
jge 0x1000ae76
mov eax, dword [ebx + 0x48]
lea edx, [esp + 0xb8]
push edx
push edi
push edi
push eax
call fcn.1000c280
jmp 0x1000ae89
mov edx, dword [ebx + 0x48]
lea ecx, [esp + 0xb8]
push ecx
push edi
push edi
push edx
call fcn.1000a340
add esp, 0x10
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 3
mov dword [esp + 0x20], eax
jl 0x1000add7
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
inc ecx
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
jne 0x1000ada2
lea eax, [esp + 0x98]
lea ecx, [esp + 0x58]
push eax
mov eax, dword [ebx + 0x48]
lea edx, [esp + 0x5c]
push ecx
push edx
push eax
call fcn.1000c280
mov esi, dword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0x78]
lea edx, [esp + 0x58]
push ecx
mov ecx, dword [ebx + 0x48]
lea eax, [esp + 0x5c]
push edx
push eax
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x98]
lea eax, [esp + 0x78]
lea ecx, [esp + 0x78]
push edx
mov edx, dword [ebx + 0x48]
push eax
push ecx
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x78]
lea ecx, [esp + 0x78]
lea edx, [esp + 0x78]
push eax
mov eax, dword [ebx + 0x48]
push ecx
push edx
push eax
call fcn.1000a340
add esp, 0x10
lea ecx, [esp + 0x78]
lea edx, [esp + 0x38]
lea eax, [esp + 0x38]
push ecx
mov ecx, dword [ebx + 0x48]
push edx
push eax
push ecx
call fcn.1000c280
mov eax, dword [esp + 0x28]
mov edx, dword [ebx + 0x44]
add esp, 0x10
and eax, 0xff
push eax
push 0
lea eax, [esp + 0xc0]
push edx
push eax
call fcn.1000acd0
add esp, 0x10
lea ecx, [esp + 0xb8]
lea edx, [esp + 0x58]
lea eax, [esp + 0x58]
push ecx
mov ecx, dword [ebx + 0x48]
push edx
push eax
push ecx
call fcn.1000a420
mov esi, dword [esp + 0xf0]
mov ecx, dword [ebx + 0x48]
add esp, 0x10
lea edx, [esp + 0x58]
lea eax, [esp + 0x38]
push edx
push eax
push esi
push ecx
call fcn.1000a340
add esp, 0x10
test ebp, ebp
je 0x1000affd
push 0x20
lea edx, [esp + 0x5c]
push 0
push edx
call fcn.100051c0
add esp, 0xc
test ebp, ebp
jle 0x1000afe4
mov ecx, dword [ebx + 0x48]
lea eax, [esp + 0x58]
push eax
push esi
push esi
push ecx
mov dword [esp + 0x68], ebp
call fcn.1000c280
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret
mov eax, dword [ebx + 0x48]
lea edx, [esp + 0x58]
push edx
push esi
neg ebp
push esi
push eax
mov dword [esp + 0x68], ebp
call fcn.1000a340
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret