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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, ecx
mov al, byte [ebx + 4]
and al, 2
neg al
mov edx, dword [ebx + 0x28]
push esi
push edi
lea ecx, [ebx + 0x1c]
mov esi, ecx
lea edi, [ebp - 0x34]
sbb eax, eax
sub edx, dword [ebx + 0x20]
and eax, 3
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x8c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x24]
sub eax, dword [ecx]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x14]
movsd dword es:[edi], dword [esi]
shr eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
movsd dword es:[edi], dword [esi]
shr eax, 2
cmp dword [ebx + 0x3c], 0
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
movsd dword es:[edi], dword [esi]
je 0xa645a6
push dword [ebx + 0x10]
mov esi, ecx
push dword [ebx + 0xc]
mov ecx, ebx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00a63e42
test eax, eax
jne 0xa645a6
mov ecx, ebx
mov dword [ebp - 0x1c], 1
call fcn.00a64276
mov ecx, eax
test ecx, ecx
jl 0xa646a4
mov edx, dword [ebx + 0x7c]
mov edi, dword [ebx + 0x84]
mov eax, dword [ebx + 0x70]
sub edi, edx
mov dword [ebp - 0x10], edi
lea esi, [ebx + 0x78]
mov ecx, dword [esi]
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x80]
movsd dword es:[edi], dword [esi]
sub eax, ecx
neg edx
push edx
movsd dword es:[edi], dword [esi]
neg ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
push ecx
lea eax, [ebp - 0x34]
push eax
movsd dword es:[edi], dword [esi]
call dword [0x3980123c]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x50]
xor esi, esi
mov eax, edx
inc esi
shl esi, cl
cdq
idiv esi
mov ecx, eax
mov eax, dword [ebp - 4]
mov edi, edx
cdq
idiv esi
mov dword [ebp - 0x20], eax
xor eax, eax
test edx, edx
setne al
xor edx, edx
add eax, dword [ebp - 0x20]
test edi, edi
setne dl
add edx, ecx
cmp eax, edx
mov eax, dword [ebp - 4]
jg 0xa644c1
mov eax, dword [ebp - 0x10]
cdq
idiv esi
mov ecx, dword [ebx + 0x58]
push 8
pop edi
mov esi, eax
xor eax, eax
test edx, edx
mov edx, dword [ebx + 0x54]
setne al
imul edx, ecx
add eax, esi
add edx, eax
mov eax, dword [ebx + 0x60]
lea esi, [edx + edx - 2]
cdq
idiv edi
imul esi, eax
mov eax, dword [ebx + 0x5c]
imul eax, ecx
lea eax, [esi + eax*2]
imul eax, dword [ebp - 0x24]
push eax
mov dword [ebx + 0x88], eax
call fcn.0097b660
xor edx, edx
cmp eax, edx
mov dword [ebx + 0x6c], eax
mov ecx, 0x8007000e
je 0xa646a4
cmp dword [0x3998e764], edx
je 0xa645af
test byte [ebx + 4], 2
je 0xa6459f
mov eax, dword [ebp - 0x30]
imul eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 8]
lea esi, [ecx + eax*4]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], edx
test eax, eax
jle 0xa64573
push 1
push dword [ebp - 4]
mov ecx, ebx
push edi
push esi
call fcn.00a63db7
mov eax, dword [ebp - 0x14]
shl eax, 2
add esi, eax
mov eax, dword [ebp - 0xc]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], eax
jl 0xa64547
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
xor edi, edi
test eax, eax
jle 0xa6459f
mov esi, dword [ebp - 8]
push dword [ebp - 0xc]
mov ecx, ebx
push dword [ebp - 0x10]
push esi
push esi
call fcn.00a63db7
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
inc edi
add esi, 4
cmp edi, eax
jl 0xa64582
emms
jmp 0xa64634
and dword [ebp - 0x1c], 0
jmp 0xa6448a
test byte [ebx + 4], 2
je 0xa646a2
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
imul ecx, eax
add ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 8]
lea esi, [esi + ecx*4]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x30]
mov dword [ebp - 0x18], edx
test ecx, ecx
jle 0xa64608
shl eax, 2
mov dword [ebp - 0x24], eax
push 1
push dword [ebp - 4]
mov ecx, ebx
push edi
push esi
call fcn.00a63d2c
mov eax, dword [ebp - 0xc]
add esi, dword [ebp - 0x24]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], eax
jl 0xa645e1
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
xor edi, edi
test eax, eax
jle 0xa64634
mov esi, dword [ebp - 8]
push dword [ebp - 0xc]
mov ecx, ebx
push dword [ebp - 0x10]
push esi
push esi
call fcn.00a63d2c
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
inc edi
add esi, 4
cmp edi, eax
jl 0xa64617
test byte [ebx + 4], 2
je 0xa646a2
cmp dword [ebp - 0x1c], 0
je 0xa646a2
mov ecx, dword [ebx + 0x20]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x24]
mov edi, ecx
sub edi, dword [ebx + 0x7c]
shl esi, 2
imul edi, esi
sub edx, eax
sub eax, dword [ebx + 0x78]
shl edx, 2
lea eax, [edi + eax*4]
add eax, dword [ebx + 0x70]
mov edi, dword [ebx + 0x90]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], ecx
jmp 0xa64697
mov esi, eax
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x14]
add edi, dword [ebx + 0x18]
inc dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebx + 0x28]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], eax
jl 0xa64673
xor ecx, ecx
pop edi
pop esi
mov eax, ecx
pop ebx
leave
ret