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

Disassembly:
push 0xffffffffffffffff
push 0x100da9b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x28]
call fcn.10005d05
xor eax, eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x70], eax
mov dword [esi + 0x18], eax
push 0x100000
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc4], 1
mov dword [esi + 0x1c], eax
call fcn.10005d24
test al, al
je 0x100af40a
mov eax, dword [esp + 0xc8]
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], eax
call fcn.10005d73
push 0x100000
lea ecx, [esp + 0x54]
call fcn.10008448
test al, al
je 0x100af40a
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x50]
call fcn.10008493
lea edx, [esp + 0x8c]
push 3
push edx
lea ecx, [esp + 0x30]
call fcn.10005e3d
cmp eax, 3
jb 0x100af736
cmp byte [esp + 0x8c], 0x1f
jne 0x100af736
cmp byte [esp + 0x8d], 0x9d
jne 0x100af736
mov al, byte [esp + 0x8e]
test al, 0x60
mov bl, al
jne 0x100af736
and eax, 0x1f
mov ebp, eax
cmp ebp, 9
mov dword [esp + 0x80], ebp
jb 0x100af736
cmp ebp, 0x10
ja 0x100af736
mov eax, dword [esi + 0x14]
mov edi, 1
mov ecx, ebp
shl edi, cl
cmp ebp, eax
mov dword [esp + 0x84], edi
jne 0x100af3d8
mov eax, dword [esi + 8]
test eax, eax
je 0x100af3d8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100af3d8
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x100af429
mov ecx, esi
call fcn.100af250
lea ecx, [edi + edi]
call fcn.100b4180
test eax, eax
mov dword [esi + 8], eax
je 0x100af40a
mov ecx, edi
call fcn.100b4180
test eax, eax
mov dword [esi + 0xc], eax
je 0x100af40a
mov ecx, edi
call fcn.100b4180
test eax, eax
mov dword [esi + 0x10], eax
jne 0x100af426
lea ecx, [esp + 0x50]
call fcn.10008484
lea ecx, [esp + 0x28]
call fcn.10005d62
mov eax, 0x8007000e
jmp 0x100af74d
mov dword [esi + 0x14], ebp
and bl, 0x80
xor edi, edi
neg bl
sbb ebx, ebx
mov ecx, dword [esi + 8]
and ebx, 0xffff0100
xor eax, eax
add ebx, 0x10000
mov dword [esp + 0x20], edi
cmp ebx, 0x100
mov dword [esp + 0x24], edi
sete al
add eax, 0x100
xor ebp, ebp
mov dword [esp + 0x1c], eax
xor eax, eax
mov word [ecx + 0x200], ax
mov edx, dword [esi + 0xc]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x14], 9
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], edi
mov byte [edx + 0x100], al
mov dword [esp + 0x88], eax
jmp 0x100af493
mov edi, dword [esp + 0x18]
cmp edi, ebp
jne 0x100af55b
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x8c]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.10005e3d
mov edi, eax
lea ecx, [esp + 0x50]
shl edi, 3
mov dword [esp + 0x18], edi
xor ebp, ebp
call fcn.100084ab
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0xb0], eax
test ecx, ecx
mov dword [esp + 0xb4], edx
je 0x100af55b
mov ebx, dword [esp + 0x20]
mov ecx, eax
sub ecx, ebx
mov ebx, edx
sbb ebx, dword [esp + 0x24]
mov dword [esp + 0xa4], ebx
jne 0x100af4fd
cmp ecx, 0x2000
jb 0x100af55b
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x30]
xor ebx, ebx
sub eax, edx
cdq
add eax, ecx
mov ecx, dword [esp + 0x3c]
adc edx, ebx
mov ebx, dword [esp + 0x38]
add eax, ebx
adc edx, ecx
lea ecx, [esp + 0xb0]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xd8]
push ecx
lea ecx, [esp + 0xac]
mov dword [esp + 0xb0], edx
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xc]
mov ebx, eax
test ebx, ebx
jne 0x100af6c6
mov ecx, dword [esp + 0x14]
mov eax, ebp
shr eax, 3
xor ebx, ebx
mov edx, 1
mov bh, byte [esp + eax + 0x8e]
mov bl, byte [esp + eax + 0x8d]
shl edx, cl
xor ecx, ecx
mov cl, byte [esp + eax + 0x8c]
shl ebx, 8
or ebx, ecx
mov ecx, ebp
and ecx, 7
mov dword [esp + 0xa0], edx
shr ebx, cl
dec edx
and ebx, edx
mov edx, dword [esp + 0x14]
add ebp, edx
mov ecx, ebx
cmp ebp, edi
mov dword [esp + 0x78], ecx
ja 0x100af6e3
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jae 0x100af6dc
cmp ecx, dword [esp + 0x7c]
jne 0x100af5e2
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 9
mov dword [esp + 0x1c], 0x101
mov byte [esp + 0x13], 0
jmp 0x100af493
xor edi, edi
cmp ecx, 0x100
mov eax, ecx
jb 0x100af612
mov edx, dword [esi + 0xc]
mov ebx, dword [esi + 0x10]
inc edi
mov dl, byte [edx + eax]
mov byte [ebx + edi - 1], dl
mov edx, dword [esi + 8]
xor ebx, ebx
mov bx, word [edx + eax*2]
mov eax, ebx
cmp eax, 0x100
jae 0x100af5ee
mov edx, dword [esp + 0x1c]
mov ebx, dword [esi + 0x10]
inc edi
mov byte [ebx + edi - 1], al
mov bl, byte [esp + 0x13]
test bl, bl
je 0x100af632
mov ebx, dword [esi + 0xc]
dec edx
cmp ecx, edx
mov byte [ebx + edx], al
jne 0x100af632
mov ecx, dword [esi + 0x10]
mov byte [ecx], al
mov eax, dword [esp + 0x54]
mov edx, dword [esi + 0x10]
dec edi
inc eax
mov cl, byte [edx + edi]
mov edx, dword [esp + 0x50]
mov byte [eax + edx - 1], cl
mov ecx, dword [esp + 0x58]
cmp eax, ecx
mov dword [esp + 0x54], eax
jne 0x100af65f
lea ecx, [esp + 0x50]
call fcn.10008580
mov eax, dword [esp + 0x54]
test edi, edi
ja 0x100af636
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x84]
cmp eax, ecx
jae 0x100af6bc
mov ecx, dword [esi + 8]
mov dx, word [esp + 0x78]
mov byte [esp + 0x13], 1
mov word [ecx + eax*2], dx
mov ecx, dword [esp + 0xa0]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jbe 0x100af48f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x80]
cmp eax, ecx
jae 0x100af48f
xor ebp, ebp
xor edi, edi
inc eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
jmp 0x100af493
mov byte [esp + 0x13], 0
jmp 0x100af48f
lea ecx, [esp + 0x50]
call fcn.10008484
lea ecx, [esp + 0x28]
call fcn.10005d62
mov eax, ebx
jmp 0x100af74d
mov edi, 1
jmp 0x100af6ea
mov edi, dword [esp + 0x88]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x38]
sub eax, ecx
mov ecx, dword [esp + 0x48]
xor ebx, ebx
cdq
add eax, ecx
lea ecx, [esp + 0x50]
adc edx, ebx
mov ebx, dword [esp + 0x3c]
add eax, ebp
adc edx, ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
call fcn.10008564
test edi, edi
jne 0x100af720
mov edi, eax
lea ecx, [esp + 0x50]
call fcn.10008484
lea ecx, [esp + 0x28]
call fcn.10005d62
mov eax, edi
jmp 0x100af74d
lea ecx, [esp + 0x50]
call fcn.10008484
lea ecx, [esp + 0x28]
call fcn.10005d62
mov eax, 1
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb4
ret 0x14