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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 0x10], 0
push ebx
push esi
push edi
mov dword [ebp - 0x18], 0
jbe 0x5a0fd0
mov edi, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x24]
mov esi, dword [ebp + 0x1c]
mov al, byte [ebp + 0x14]
test al, al
je 0x5a0a65
push edi
movzx eax, al
push eax
push dword [ebp + 8]
call fcn.005a30d0
add esp, 0xc
test eax, eax
jne 0x5a0a6b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
mov edx, dword [ebp + 0x18]
xor eax, eax
mov ecx, edx
test edx, edx
je 0x5a0a7b
inc eax
shr ecx, 1
jne 0x5a0a76
add eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x20]
cmp eax, 0x20
jbe 0x5a0e81
cmp edx, 8
jne 0x5a0adf
mov eax, dword [ebx + 0x1c]
imul dword [edi - 0x20]
mov esi, eax
mov ecx, edx
mov eax, dword [ebx + 0x18]
imul dword [edi - 0x1c]
add esi, eax
mov eax, dword [ebx + 0x14]
adc ecx, edx
imul dword [edi - 0x18]
add esi, eax
mov eax, dword [ebx + 0x10]
adc ecx, edx
imul dword [edi - 0x14]
add esi, eax
mov eax, dword [ebx + 0xc]
adc ecx, edx
imul dword [edi - 0x10]
add esi, eax
mov eax, dword [ebx + 8]
adc ecx, edx
imul dword [edi - 0xc]
add esi, eax
mov eax, dword [ebx + 4]
adc ecx, edx
imul dword [edi - 8]
add esi, eax
mov eax, dword [ebx]
adc ecx, edx
imul dword [edi - 4]
jmp 0x5a0e68
cmp edx, 7
jne 0x5a0b2a
mov eax, dword [ebx + 0x18]
imul dword [edi - 0x1c]
mov esi, eax
mov ecx, edx
mov eax, dword [ebx + 0x14]
imul dword [edi - 0x18]
add esi, eax
mov eax, dword [ebx + 0x10]
adc ecx, edx
imul dword [edi - 0x14]
add esi, eax
mov eax, dword [ebx + 0xc]
adc ecx, edx
imul dword [edi - 0x10]
add esi, eax
mov eax, dword [ebx + 8]
adc ecx, edx
imul dword [edi - 0xc]
add esi, eax
mov eax, dword [ebx + 4]
adc ecx, edx
imul dword [edi - 8]
add esi, eax
mov eax, dword [ebx]
adc ecx, edx
imul dword [edi - 4]
jmp 0x5a0e68
cmp edx, 3
jne 0x5a0b4d
mov eax, dword [ebx + 8]
imul dword [edi - 0xc]
mov esi, eax
mov ecx, edx
mov eax, dword [ebx + 4]
imul dword [edi - 8]
add esi, eax
mov eax, dword [ebx]
adc ecx, edx
imul dword [edi - 4]
jmp 0x5a0e68
cmp edx, 6
jne 0x5a0b8e
mov eax, dword [ebx + 0x14]
imul dword [edi - 0x18]
mov esi, eax
mov ecx, edx
mov eax, dword [ebx + 0x10]
imul dword [edi - 0x14]
add esi, eax
mov eax, dword [ebx + 0xc]
adc ecx, edx
imul dword [edi - 0x10]
add esi, eax
mov eax, dword [ebx + 8]
adc ecx, edx
imul dword [edi - 0xc]
add esi, eax
mov eax, dword [ebx + 4]
adc ecx, edx
imul dword [edi - 8]
add esi, eax
mov eax, dword [ebx]
adc ecx, edx
imul dword [edi - 4]
jmp 0x5a0e68
cmp edx, 5
jne 0x5a0bc5
mov eax, dword [ebx + 0x10]
imul dword [edi - 0x14]
mov esi, eax
mov ecx, edx
mov eax, dword [ebx + 0xc]
imul dword [edi - 0x10]
add esi, eax
mov eax, dword [ebx + 8]
adc ecx, edx
imul dword [edi - 0xc]
add esi, eax
mov eax, dword [ebx + 4]
adc ecx, edx
imul dword [edi - 8]
add esi, eax
mov eax, dword [ebx]
adc ecx, edx
imul dword [edi - 4]
jmp 0x5a0e68
cmp edx, 4
jne 0x5a0bf2
mov eax, dword [ebx + 0xc]
imul dword [edi - 0x10]
mov esi, eax
mov ecx, edx
mov eax, dword [ebx + 8]
imul dword [edi - 0xc]
add esi, eax
mov eax, dword [ebx + 4]
adc ecx, edx
imul dword [edi - 8]
add esi, eax
mov eax, dword [ebx]
adc ecx, edx
imul dword [edi - 4]
jmp 0x5a0e68
cmp edx, 0xc
jne 0x5a0c6f
mov eax, dword [ebx + 0x2c]
imul dword [edi - 0x30]
mov esi, eax
mov ecx, edx
mov eax, dword [ebx + 0x28]
imul dword [edi - 0x2c]
add esi, eax
mov eax, dword [ebx + 0x24]
adc ecx, edx
imul dword [edi - 0x28]
add esi, eax
mov eax, dword [ebx + 0x20]
adc ecx, edx
imul dword [edi - 0x24]
add esi, eax
mov eax, dword [ebx + 0x1c]
adc ecx, edx
imul dword [edi - 0x20]
add esi, eax
mov eax, dword [ebx + 0x18]
adc ecx, edx
imul dword [edi - 0x1c]
add esi, eax
mov eax, dword [ebx + 0x14]
adc ecx, edx
imul dword [edi - 0x18]
add esi, eax
mov eax, dword [ebx + 0x10]
adc ecx, edx
imul dword [edi - 0x14]
add esi, eax
mov eax, dword [ebx + 0xc]
adc ecx, edx
imul dword [edi - 0x10]
add esi, eax
mov eax, dword [ebx + 8]
adc ecx, edx
imul dword [edi - 0xc]
add esi, eax
mov eax, dword [ebx + 4]
adc ecx, edx
imul dword [edi - 8]
add esi, eax
mov eax, dword [ebx]
adc ecx, edx
imul dword [edi - 4]
jmp 0x5a0e68
cmp edx, 2
jne 0x5a0c88
mov eax, dword [ebx + 4]
imul dword [edi - 8]
mov esi, eax
mov ecx, edx
mov eax, dword [ebx]
imul dword [edi - 4]
jmp 0x5a0e68
cmp edx, 1
jne 0x5a0c9b
mov eax, dword [ebx]
imul dword [edi - 4]
mov esi, eax
mov ecx, edx
jmp 0x5a0e6c
cmp edx, 0xa
jne 0x5a0d04
mov eax, dword [ebx + 0x24]
imul dword [edi - 0x28]
mov esi, eax
mov ecx, edx
mov eax, dword [ebx + 0x20]
imul dword [edi - 0x24]
add esi, eax
mov eax, dword [ebx + 0x1c]
adc ecx, edx
imul dword [edi - 0x20]
add esi, eax
mov eax, dword [ebx + 0x18]
adc ecx, edx
imul dword [edi - 0x1c]
add esi, eax
mov eax, dword [ebx + 0x14]
adc ecx, edx
imul dword [edi - 0x18]
add esi, eax
mov eax, dword [ebx + 0x10]
adc ecx, edx
imul dword [edi - 0x14]
add esi, eax
mov eax, dword [ebx + 0xc]
adc ecx, edx
imul dword [edi - 0x10]
add esi, eax
mov eax, dword [ebx + 8]
adc ecx, edx
imul dword [edi - 0xc]
add esi, eax
mov eax, dword [ebx + 4]
adc ecx, edx
imul dword [edi - 8]
add esi, eax
mov eax, dword [ebx]
adc ecx, edx
imul dword [edi - 4]
jmp 0x5a0e68
cmp edx, 9
jne 0x5a0d63
mov eax, dword [ebx + 0x20]
imul dword [edi - 0x24]
mov esi, eax
mov ecx, edx
mov eax, dword [ebx + 0x1c]
imul dword [edi - 0x20]
add esi, eax
mov eax, dword [ebx + 0x18]
adc ecx, edx
imul dword [edi - 0x1c]
add esi, eax
mov eax, dword [ebx + 0x14]
adc ecx, edx
imul dword [edi - 0x18]
add esi, eax
mov eax, dword [ebx + 0x10]
adc ecx, edx
imul dword [edi - 0x14]
add esi, eax
mov eax, dword [ebx + 0xc]
adc ecx, edx
imul dword [edi - 0x10]
add esi, eax
mov eax, dword [ebx + 8]
adc ecx, edx
imul dword [edi - 0xc]
add esi, eax
mov eax, dword [ebx + 4]
adc ecx, edx
imul dword [edi - 8]
add esi, eax
mov eax, dword [ebx]
adc ecx, edx
imul dword [edi - 4]
jmp 0x5a0e68
cmp edx, 0xb
jne 0x5a0dd6
mov eax, dword [ebx + 0x28]
imul dword [edi - 0x2c]
mov esi, eax
mov ecx, edx
mov eax, dword [ebx + 0x24]
imul dword [edi - 0x28]
add esi, eax
mov eax, dword [ebx + 0x20]
adc ecx, edx
imul dword [edi - 0x24]
add esi, eax
mov eax, dword [ebx + 0x1c]
adc ecx, edx
imul dword [edi - 0x20]
add esi, eax
mov eax, dword [ebx + 0x18]
adc ecx, edx
imul dword [edi - 0x1c]
add esi, eax
mov eax, dword [ebx + 0x14]
adc ecx, edx
imul dword [edi - 0x18]
add esi, eax
mov eax, dword [ebx + 0x10]
adc ecx, edx
imul dword [edi - 0x14]
add esi, eax
mov eax, dword [ebx + 0xc]
adc ecx, edx
imul dword [edi - 0x10]
add esi, eax
mov eax, dword [ebx + 8]
adc ecx, edx
imul dword [edi - 0xc]
add esi, eax
mov eax, dword [ebx + 4]
adc ecx, edx
imul dword [edi - 8]
add esi, eax
mov eax, dword [ebx]
adc ecx, edx
imul dword [edi - 4]
jmp 0x5a0e68
xor ecx, ecx
mov dword [ebp - 8], 0
xor esi, esi
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], ecx
cmp edx, 2
jl 0x5a0e47
lea eax, [edx - 1]
lea esi, [edi - 8]
mov dword [ebp - 0x1c], eax
mov edi, ecx
jmp 0x5a0e10
mov eax, dword [ebx + edi*4]
lea esi, [esi - 8]
imul dword [esi + 0xc]
add dword [ebp - 8], eax
mov eax, dword [ebx + edi*4 + 4]
adc ecx, edx
imul dword [esi + 8]
add dword [ebp - 0xc], eax
adc dword [ebp - 0x14], edx
add edi, 2
cmp edi, dword [ebp - 0x1c]
jl 0x5a0e10
mov edx, dword [ebp + 0x18]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0x28]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x20]
mov esi, ecx
cmp eax, edx
jge 0x5a0e5c
shl eax, 2
mov ecx, edi
sub ecx, eax
mov eax, dword [eax + ebx]
imul dword [ecx - 4]
mov esi, eax
mov ecx, edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
adc edx, dword [ebp - 0x14]
add esi, eax
adc ecx, edx
mov eax, esi
mov edx, ecx
mov esi, dword [ebp + 0x1c]
mov ecx, esi
call fcn.00486560
add dword [edi], eax
jmp 0x5a0fba
mov eax, dword [ebp + 0x18]
xor edx, edx
dec eax
cmp eax, 0x1f
ja case.default.0x5a0e90
jmp dword [eax*4 + 0x5a0fdc]
mov edx, dword [edi - 0x80]
imul edx, dword [ebx + 0x7c]
mov eax, dword [edi - 0x7c]
imul eax, dword [ebx + 0x78]
add edx, eax
mov eax, dword [edi - 0x78]
imul eax, dword [ebx + 0x74]
add edx, eax
mov eax, dword [edi - 0x74]
imul eax, dword [ebx + 0x70]
add edx, eax
mov eax, dword [edi - 0x70]
imul eax, dword [ebx + 0x6c]
add edx, eax
mov eax, dword [edi - 0x6c]
imul eax, dword [ebx + 0x68]
add edx, eax
mov eax, dword [edi - 0x68]
imul eax, dword [ebx + 0x64]
add edx, eax
mov eax, dword [edi - 0x64]
imul eax, dword [ebx + 0x60]
add edx, eax
mov eax, dword [edi - 0x60]
imul eax, dword [ebx + 0x5c]
add edx, eax
mov eax, dword [edi - 0x5c]
imul eax, dword [ebx + 0x58]
add edx, eax
mov eax, dword [edi - 0x58]
imul eax, dword [ebx + 0x54]
add edx, eax
mov eax, dword [edi - 0x54]
imul eax, dword [ebx + 0x50]
add edx, eax
mov eax, dword [edi - 0x50]
imul eax, dword [ebx + 0x4c]
add edx, eax
mov eax, dword [edi - 0x4c]
imul eax, dword [ebx + 0x48]
add edx, eax
mov eax, dword [edi - 0x48]
imul eax, dword [ebx + 0x44]
add edx, eax
mov eax, dword [edi - 0x44]
imul eax, dword [ebx + 0x40]
add edx, eax
mov eax, dword [edi - 0x40]
imul eax, dword [ebx + 0x3c]
add edx, eax
mov eax, dword [edi - 0x3c]
imul eax, dword [ebx + 0x38]
add edx, eax
mov eax, dword [edi - 0x38]
imul eax, dword [ebx + 0x34]
add edx, eax
mov eax, dword [edi - 0x34]
imul eax, dword [ebx + 0x30]
add edx, eax
mov eax, dword [edi - 0x30]
imul eax, dword [ebx + 0x2c]
add edx, eax
mov eax, dword [edi - 0x2c]
imul eax, dword [ebx + 0x28]
add edx, eax
mov eax, dword [edi - 0x28]
imul eax, dword [ebx + 0x24]
add edx, eax
mov eax, dword [edi - 0x24]
imul eax, dword [ebx + 0x20]
add edx, eax
mov eax, dword [edi - 0x20]
imul eax, dword [ebx + 0x1c]
add edx, eax
mov eax, dword [edi - 0x1c]
imul eax, dword [ebx + 0x18]
add edx, eax
mov eax, dword [edi - 0x18]
imul eax, dword [ebx + 0x14]
add edx, eax
mov eax, dword [edi - 0x14]
imul eax, dword [ebx + 0x10]
add edx, eax
mov eax, dword [edi - 0x10]
imul eax, dword [ebx + 0xc]
add edx, eax
mov eax, dword [edi - 0xc]
imul eax, dword [ebx + 8]
add edx, eax
mov eax, dword [edi - 8]
imul eax, dword [ebx + 4]
add edx, eax
mov eax, dword [edi - 4]
imul eax, dword [ebx]
add edx, eax
mov ecx, esi
sar edx, cl
add dword [edi], edx
mov eax, dword [ebp - 0x18]
add edi, 4
inc eax
mov dword [ebp + 0x28], edi
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp + 0x10]
jb 0x5a0a43
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret