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

Disassembly:
sub esp, 0x54
xor eax, eax
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [esp + 0x5c]
push esi
mov dword [esp + 0x34], eax
push edi
push ebp
mov ecx, dword [ebx + 0x100]
lea esi, [ebx + 0xd0]
mov edi, ecx
mov dword [esp + 0x18], ecx
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
mov word [esp + 0x12], ax
mov ecx, dword [esp + 0x18]
mov ebp, 0x30
mov byte [ecx + 9], 0x12
mov ecx, dword [ebx + 0x68]
test ecx, ecx
je 0x1000afb5
mov eax, dword [ebx + 0x198]
mov dword [eax + 0xa8], ecx
jmp 0x1000afc5
mov ecx, dword [ebx + 0x198]
mov dword [ecx + 0xa8], 4
mov eax, dword [ebx + 0x194]
mov ecx, dword [esp + 0x18]
cmp dword [eax + 0xe8], 1
sbb eax, eax
and ax, 2
mov word [ecx + 2], ax
xor ecx, ecx
mov eax, dword [ebx + 0x194]
cmp byte [ebx + 0xc], cl
je 0x1000aff9
mov dword [eax + 0xdc], ecx
mov dword [esp + 0x40], ecx
jmp 0x1000b025
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xcc]
add dword [eax + 0xdc], ecx
mov eax, dword [ebx + 0x194]
mov esi, dword [ebx + 0x198]
mov eax, dword [eax + 0xdc]
cdq
idiv dword [esi + 0xa8]
mov dword [esp + 0x40], edx
cmp dword [esp + 0x40], 0
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0xcc], eax
je 0x1000b049
mov eax, 2
mov ecx, dword [esp + 0x40]
and ecx, 1
sub eax, ecx
mov dword [esp + 0x28], eax
jmp 0x1000b051
mov dword [esp + 0x28], 0
mov esi, dword [ebx + 0x198]
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
push eax
push ecx
push edx
xor eax, eax
mov al, byte [ebx + 0xc4]
mov ecx, dword [esi + 0xbc]
add eax, dword [esi + 0xc0]
mov edx, dword [esi + 0xa8]
push eax
push ecx
push edx
mov eax, dword [ebx + 0x1a0]
push eax
call 0x1005fcfc
fstp dword [esi + 0x18]
mov eax, dword [esp + 0x44]
add esp, 0x1c
mov edi, dword [ebx + 0x194]
mov esi, dword [edi + 0xe0]
add edi, 0xe0
test eax, eax
je 0x1000b0b9
cmp eax, 1
je 0x1000b0e8
cmp eax, 2
je 0x1000b11b
jmp 0x1000b12f
mov eax, dword [ebx + 0x198]
xor esi, esi
fld dword [eax + 0x18]
fmul qword [eax + 0x38]
call fcn.10012528
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
mov dword [edi], 1
or byte [ecx + 2], 5
fstp qword [esp + 0x38]
jmp 0x1000b12f
mov ecx, dword [esp + 0x18]
or byte [ecx + 3], 1
mov eax, dword [ebx + 0x198]
fld dword [eax + 0x18]
fmul qword [eax + 0x30]
call fcn.10012528
mov ecx, dword [ebx + 0x194]
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
mov dword [ecx + 0xe0], esi
fstp qword [esp + 0x38]
jmp 0x1000b12f
mov eax, dword [ebx + 0x198]
fld dword [eax + 0x18]
mov eax, esi
fstp qword [esp + 0x38]
xor eax, 1
mov dword [edi], eax
mov eax, dword [ebx + 0x198]
mov eax, dword [eax + 0xa8]
sub eax, dword [esp + 0x40]
cmp eax, 1
jne 0x1000b14c
mov ecx, dword [esp + 0x18]
or byte [ecx + 2], 8
cmp esi, 1
jne 0x1000b159
mov ecx, dword [esp + 0x18]
or byte [ecx + 3], 2
mov eax, dword [ebx + 0x198]
test byte [eax + 0x68], 2
je 0x1000b16d
mov ecx, dword [esp + 0x18]
or byte [ecx + 2], 0x40
cmp dword [esp + 0x28], 1
sbb eax, eax
lea esi, [ebx + 0x104]
and eax, 4
sub esp, 0x18
mov edi, esp
mov ecx, 6
mov dword [esp + 0x4c], eax
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.1000cd50
add esp, 0x1c
mov eax, dword [ebx + 0x10c]
mov esi, dword [ebx + 0x104]
imul esi, eax
add esi, dword [ebx + 0x114]
mov edx, esi
sub edx, eax
mov eax, dword [ebx + 0x108]
test eax, eax
jle 0x1000b1c2
mov cl, byte [edx]
inc edx
mov byte [esi], cl
inc esi
dec eax
jne 0x1000b1b9
mov eax, dword [ebx + 0x198]
test byte [eax + 0x60], 2
mov eax, dword [ebx + 0x194]
je 0x1000b1ea
mov dword [eax + 0xe4], 8
mov ecx, dword [ebx + 0x100]
or byte [ecx + 2], 0x30
jmp 0x1000b200
mov dword [eax + 0xe4], 0x10
mov ecx, dword [ebx + 0x100]
and word [ecx + 2], 0xffcf
lea eax, [esp + 0x48]
lea ecx, [ebx + 0x134]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x30], eax
add edx, 0x18
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 2
mov dword [esp + 0x14], 0x30
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x194]
mov dword [ebx + 0x7c], 0x14
mov dword [ebx + 0x80], 0x3c
mov dword [ebx + 0x78], eax
cmp dword [ecx + 0xe8], 0
je 0x1000b26e
mov esi, dword [esp + 0x20]
push 1
sub esp, 0x18
mov ecx, 6
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.1000cb20
add esp, 0x1c
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x14], 0
mov dword [eax], ebp
mov eax, dword [ebx + 0x198]
mov dword [eax + 0x118], 0
je 0x1000b297
mov dword [eax + 0x11c], 0x3ff00000
jmp 0x1000b2a1
mov dword [eax + 0x11c], 0x40000000
mov esi, dword [esp + 0x20]
lea edi, [esp + 0x4c]
add esi, 0x48
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x194]
mov eax, dword [esp + 0x34]
add edx, dword [esp + 0x14]
push eax
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x24]
push eax
push ecx
push esi
sub esp, 0x18
lea esi, [edx + 0x90]
mov edi, esp
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
sub esp, 0x18
lea esi, [edx + 0x48]
mov edi, esp
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
sub esp, 0x18
mov esi, edx
mov edi, esp
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0xac]
sub esp, 0x18
mov edi, esp
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x98]
sub esp, 0x18
mov edi, esp
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.1000b5d0
mov dword [esp + 0xb8], eax
add esp, 0x94
mov ecx, eax
sub esp, 0x18
mov edx, dword [ebx + 0x194]
mov eax, dword [esp + 0x48]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
lea esi, [edx + ecx + 0x90]
mov edi, esp
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
call fcn.1000cbf0
xor word [esp + 0x2a], ax
add ebp, dword [esp + 0x3c]
add esp, 0x18
mov eax, 5
cmp dword [esp + 0x14], 0x30
je 0x1000b395
mov eax, dword [esp + 0x1c]
dec eax
cmp eax, 1
sbb eax, eax
and eax, 0xffffffa6
add eax, 0x64
push eax
push ebx
call fcn.10001950
sub dword [esp + 0x38], 4
sub dword [esp + 0x1c], 0x18
sub dword [esp + 0x28], 0x18
sub dword [esp + 0x34], 4
dec dword [esp + 0x24]
add esp, 8
cmp dword [esp + 0x14], 0
jge 0x1000b22d
mov ecx, dword [esp + 0x18]
test ebp, 3
mov dword [ecx + 0x1c], 0
je 0x1000b3e7
mov ecx, dword [esp + 0x18]
inc ebp
test ebp, 3
mov byte [ebp + ecx - 1], 0
jne 0x1000b3d5
mov eax, dword [ebx + 0x194]
add dword [eax + 0xd8], ebp
mov ecx, dword [ebx + 0x1a0]
push ecx
call fcn.1000abf0
add esp, 4
cmp eax, 0xffffffff
jne 0x1000b40c
mov ebp, 0x10
mov ecx, dword [esp + 0x18]
mov dx, word [esp + 0x12]
lea eax, [ebp*8]
mov dword [ecx + 4], eax
cmp dword [esp + 0x28], 1
mov word [ecx + 0xa], dx
je 0x1000b44b
xor esi, esi
mov eax, dword [ebx + 0x194]
add eax, esi
add esi, 0x18
push eax
add eax, 0x90
push eax
call fcn.1000cae0
add esp, 8
cmp esi, 0x48
jl 0x1000b42c
mov eax, dword [esp + 0x28]
pop ebp
dec eax
pop edi
pop esi
cmp eax, 1
sbb eax, eax
pop ebx
neg eax
add esp, 0x54
ret