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

Disassembly:
push edi
push esi
push ebx
sub esp, 0x60
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov edx, dword [ebx + 0x34]
cmp edx, 1
je 0xa9cd1d
cmp edx, 2
je 0xa9cd1d
cmp edx, 5
je 0xa9cd1d
add esp, 0x60
pop ebx
pop esi
pop edi
ret
lea edx, [ebx + 4]
mov dword [esp], edx
mov edx, dword [ebx + 0x37b8]
imul edx, eax
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x37bc]
imul eax, edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], edi
lea edi, [esi + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ecx
call fcn.00a99ba7
test eax, eax
jne 0xa9cef2
mov ecx, dword [esi + 0x2c]
mov edi, dword [ebx + 0x30]
cmp edi, 3
je 0xa9cf47
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
cmp esi, edx
jge 0xa9cef2
mov eax, dword [esp + 0x38]
imul eax, edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], ebp
mov ecx, edi
imul ecx, dword [esp + 0x30]
cmp ecx, eax
jge 0xa9cee5
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
lea esi, [esi]
lea edi, [edi]
mov ebp, dword [esp + 0x58]
imul ebp, dword [ebx + 0x3c]
add ebp, dword [esp + 0x44]
movzx edx, byte [ebp + ecx]
movzx esi, byte [ebp + ecx + 1]
movzx edi, byte [ebp + ecx + 2]
imul eax, edi, 0x167
add eax, 0xffff4d0b
sar eax, 8
add eax, edx
cmp eax, 0xff
jle 0xa9ce17
mov eax, 0xff
jmp 0xa9ce1d
test eax, eax
jge 0xa9ce1d
xor eax, eax
movsx eax, ax
imul edi, edi, 0xffffff49
mov dword [esp + 0x48], eax
imul eax, esi, 0xffffffa8
lea eax, [eax + edi + 0x87f6]
sar eax, 8
add eax, edx
cmp eax, 0xff
jle 0xa9ce47
mov eax, 0xff
jmp 0xa9ce4d
test eax, eax
jge 0xa9ce4d
xor eax, eax
movsx eax, ax
imul esi, esi, 0x1c6
add esi, 0xffff1daf
mov dword [esp + 0x4c], eax
sar esi, 8
add edx, esi
cmp edx, 0xff
jle 0xa9ce77
mov edx, 0xff
jmp 0xa9ce7d
test edx, edx
jge 0xa9ce7d
xor edx, edx
movsx eax, dx
mov edx, dword [ebx + 0x58]
cmp edx, 6
je 0xa9cef9
cmp edx, 3
jne 0xa9cec9
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov byte [ebp + ecx], dl
mov edi, dword [ebx + 0x3c]
mov ebp, dword [esp + 0x58]
imul edi, ebp
add edi, esi
mov edx, dword [esp + 0x4c]
mov byte [ecx + edi + 1], dl
mov edi, dword [ebx + 0x3c]
imul edi, ebp
add edi, esi
mov byte [ecx + edi + 2], al
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x54], eax
imul eax, dword [esp + 0x38]
mov dword [esp + 0x50], eax
add ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
cmp ecx, eax
jl 0xa9cdd7
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0xa9cdb2
mov ebp, dword [esp + 0x40]
add esp, 0x60
pop ebx
pop esi
pop edi
ret
mov edx, dword [esp + 0x48]
neg dl
add dl, 0xff
mov esi, dword [esp + 0x44]
mov byte [ebp + ecx], dl
mov edx, dword [esp + 0x4c]
neg dl
add dl, 0xff
mov edi, dword [ebx + 0x3c]
mov ebp, dword [esp + 0x58]
imul edi, ebp
add edi, esi
mov byte [ecx + edi + 1], dl
neg al
add al, 0xff
mov edx, dword [ebx + 0x3c]
imul edx, ebp
add edx, esi
mov byte [ecx + edx + 2], al
mov edi, dword [ebx + 0x30]
mov dword [esp + 0x54], edi
imul edi, dword [esp + 0x38]
mov dword [esp + 0x50], edi
jmp 0xa9cec9
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
cmp esi, edx
jge 0xa9cef2
mov eax, dword [esp + 0x38]
lea eax, [eax + eax*2]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], ebp
mov ecx, dword [esp + 0x30]
lea ebp, [ecx + ecx*2]
cmp ebp, eax
jge 0xa9d069
mov dword [esp + 0x48], esi
mov esi, esi
mov esi, dword [esp + 0x48]
imul esi, dword [ebx + 0x3c]
add esi, dword [esp + 0x44]
movzx edx, byte [esi + ebp]
movzx ecx, byte [esi + ebp + 1]
movzx edi, byte [esi + ebp + 2]
imul eax, edi, 0x167
add eax, 0xffff4d0b
sar eax, 8
add eax, edx
cmp eax, 0xff
jle 0xa9cfb7
mov eax, 0xff
jmp 0xa9cfbd
test eax, eax
jge 0xa9cfbd
xor eax, eax
movsx eax, ax
imul edi, edi, 0xffffff49
mov dword [esp + 0x4c], eax
imul eax, ecx, 0xffffffa8
lea eax, [eax + edi + 0x87f6]
sar eax, 8
add eax, edx
cmp eax, 0xff
jle 0xa9cfe7
mov eax, 0xff
jmp 0xa9cfed
test eax, eax
jge 0xa9cfed
xor eax, eax
movsx eax, ax
imul ecx, ecx, 0x1c6
add ecx, 0xffff1daf
sar ecx, 8
add edx, ecx
cmp edx, 0xff
jle 0xa9d017
mov edx, 0xff
jmp 0xa9d01d
test edx, edx
jge 0xa9d01d
xor edx, edx
movsx edx, dx
mov ecx, dword [ebx + 0x34]
cmp ecx, 2
je 0xa9d07b
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov byte [esi + ebp], cl
mov ecx, dword [ebx + 0x3c]
mov esi, dword [esp + 0x48]
imul ecx, esi
add ecx, edi
mov byte [ebp + ecx + 1], al
mov eax, dword [ebx + 0x3c]
imul eax, esi
add eax, edi
mov byte [ebp + eax + 2], dl
add ebp, 3
mov eax, dword [esp + 0x38]
lea eax, [eax + eax*2]
cmp ebp, eax
jl 0xa9cf77
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0xa9cf62
mov ebp, dword [esp + 0x40]
jmp 0xa9cef2
mov byte [esi + ebp], dl
mov esi, dword [ebx + 0x3c]
mov edi, dword [esp + 0x48]
imul esi, edi
mov edx, dword [esp + 0x44]
add esi, edx
mov byte [ebp + esi + 1], al
mov ecx, dword [ebx + 0x3c]
imul ecx, edi
add ecx, edx
mov eax, dword [esp + 0x4c]
mov byte [ebp + ecx + 2], al
jmp 0xa9d04f