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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x5c
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x88]
mov ebp, dword [esp + 0x90]
mov edx, dword [esp + 0x80]
sub edx, edi
mov dword [esp + 0x38], edx
lea ebx, [edx + 1]
mov ecx, dword [esp + 0x84]
sub ecx, dword [esp + 0x7c]
mov dword [esp + 0x28], ecx
lea esi, [ecx + 1]
cmp ebx, ebp
jl 0x43289d
mov edx, dword [esp + 0x94]
cmp esi, edx
jl 0x43289d
lea edx, [ebp + ebp]
mov dword [esp + 0x24], edx
lea ecx, [edx + edx]
mov dword [esp + 0x30], ecx
test ecx, ecx
jle 0x432293
lea ecx, [edx + edx]
cmp ecx, 6
jl 0x432920
xor ecx, ecx
mov dword [esp + 8], ecx
lea edx, [edx + edx - 6]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x38]
lea ecx, [edx + edx + 2]
mov dword [esp + 0x4c], ecx
lea ecx, [edx + edx + 2]
lea ecx, [ecx + edx + 1]
mov dword [esp], ecx
lea ecx, [edx*4 + 4]
mov dword [esp + 4], ecx
xor ecx, ecx
mov dword [esp + 0x44], ecx
lea ecx, [edx + edx + 2]
add ecx, ecx
lea ecx, [ecx + edx + 1]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebx
lea ecx, [edx + edx + 2]
add ecx, ecx
lea ecx, [ecx + edx + 1]
mov dword [esp + 0x1c], ecx
lea ecx, [edx + edx + 2]
add ecx, ecx
lea ecx, [ecx + edx + 1]
mov dword [esp + 0x20], ecx
lea ecx, [edx + edx + 2]
add ecx, ecx
lea ecx, [ecx + edx + 1]
mov dword [esp + 0x24], ecx
lea ecx, [edx + edx + 2]
add ecx, ecx
lea ecx, [ecx + edx + 1]
mov edx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], ebx
mov ebx, edx
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 4]
mov ecx, dword [esp]
mov eax, edi
cdq
idiv ebp
add eax, eax
add eax, eax
mov dword [ebx*4 + 0x7a8500], eax
mov eax, dword [esp + 0x40]
cdq
idiv ebp
add eax, eax
add eax, eax
mov dword [ebx*4 + 0x7a8504], eax
mov eax, dword [esp + 0x4c]
cdq
idiv ebp
add eax, eax
add eax, eax
mov dword [ebx*4 + 0x7a8508], eax
mov eax, ecx
cdq
idiv ebp
add eax, eax
add eax, eax
mov dword [ebx*4 + 0x7a850c], eax
mov eax, esi
cdq
idiv ebp
add eax, eax
add eax, eax
mov dword [ebx*4 + 0x7a8510], eax
add edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
add ecx, dword [esp + 0x24]
add esi, dword [esp + 0x38]
add ebx, 5
mov eax, dword [esp + 0x48]
cmp ebx, eax
jle 0x4321ba
mov edx, ebx
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x90]
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x78]
mov ecx, edx
imul ecx, ebx
mov ebp, ebx
mov ebx, edx
mov edi, dword [esp + 0x30]
mov eax, ecx
cdq
idiv edi
add eax, eax
add eax, eax
mov dword [ebx*4 + 0x7a8500], eax
add ecx, ebp
inc ebx
cmp ebx, edi
jl 0x43226a
mov ebp, dword [esp + 0x90]
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x94]
lea ecx, [edx + edx]
mov dword [esp + 0x38], ecx
lea ebx, [ecx + ecx]
mov dword [esp + 0x34], ebx
test ebx, ebx
jle 0x432403
mov edx, ecx
lea ecx, [edx + edx]
cmp ecx, 6
jl 0x432919
xor ecx, ecx
mov ebx, edx
lea edx, [ebx + ebx - 6]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x28]
lea ebx, [edx + edx + 2]
mov dword [esp + 0x4c], ebx
lea ebx, [edx + edx + 2]
lea ebx, [ebx + edx + 1]
mov dword [esp], ebx
lea ebx, [edx*4 + 4]
mov dword [esp + 4], ebx
xor ebx, ebx
mov dword [esp + 0x44], ebx
lea ebx, [edx + edx + 2]
add ebx, ebx
lea ebx, [ebx + edx + 1]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x40], esi
lea ebx, [edx + edx + 2]
add ebx, ebx
lea ebx, [ebx + edx + 1]
mov dword [esp + 0x20], ebx
lea ebx, [edx + edx + 2]
add ebx, ebx
lea ebx, [ebx + edx + 1]
mov dword [esp + 0x24], ebx
lea ebx, [edx + edx + 2]
add ebx, ebx
lea ebx, [ebx + edx + 1]
mov dword [esp + 0x3c], ebx
lea ebx, [edx + edx + 2]
add ebx, ebx
lea edx, [ebx + edx + 1]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 4]
mov ebp, dword [esp]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x44]
cdq
idiv edi
mov dword [ecx*4 + 0x798400], eax
mov eax, ebx
cdq
idiv edi
mov dword [ecx*4 + 0x798404], eax
mov eax, dword [esp + 0x4c]
cdq
idiv edi
mov dword [ecx*4 + 0x798408], eax
mov eax, ebp
cdq
idiv edi
mov dword [ecx*4 + 0x79840c], eax
mov eax, esi
cdq
idiv edi
mov dword [ecx*4 + 0x798410], eax
mov ebx, dword [esp + 0x44]
add ebx, dword [esp + 0x1c]
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x40]
add ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x4c]
add edx, dword [esp + 0x24]
mov dword [esp + 0x4c], edx
add ebp, dword [esp + 0x3c]
add esi, dword [esp + 0x28]
add ecx, 5
mov edx, dword [esp + 0x48]
cmp ecx, edx
jle 0x43234f
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x90]
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x78]
mov ebx, ecx
imul ebx, esi
mov edi, dword [esp + 0x34]
mov eax, ebx
cdq
idiv edi
mov dword [ecx*4 + 0x798400], eax
add ebx, esi
inc ecx
cmp ecx, edi
jl 0x4323e5
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x2c], edx
test edx, edx
jle 0x432912
xor esi, esi
xor ecx, ecx
xor edx, edx
mov edi, dword [esp + 0x94]
mov ebx, dword [esp + 0x7c]
mov eax, dword [edx + 0x798400]
add eax, ebx
test eax, eax
jge 0x432436
lea esi, [ecx + 1]
cmp eax, dword [esp + 0x8c]
jge 0x4328fe
add edx, 0x10
inc ecx
cmp ecx, edi
jl 0x432427
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x28], ebp
test ebp, ebp
jle 0x4328f7
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x3c], esi
mov esi, dword [edx + 0x7a8500]
sar esi, 2
add esi, edi
test esi, esi
jge 0x43247e
lea ebx, [ecx + 1]
cmp esi, eax
jge 0x4328ea
add edx, 0x10
inc ecx
cmp ecx, ebp
jl 0x43246c
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
cmp esi, edx
jge 0x4324a2
mov edx, dword [esp + 0x28]
cmp ebx, edx
jl 0x4324c2
mov eax, dword [esp + 0x30]
imul eax, dword [esp + 0x94]
push eax
mov edx, dword [esp + 0x74]
push edx
call dword [0x5b2480]
add esp, 0x64
pop ebx
pop ebp
pop esi
pop edi
ret
lea eax, [eax + eax]
add eax, eax
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x34]
test edx, edx
jle 0x432573
mov eax, dword [esp + 0x38]
lea edx, [eax + eax]
cmp edx, 6
jl 0x4328e3
xor ecx, ecx
lea edx, [eax + eax - 6]
mov eax, dword [esp + 0x24]
mov edi, dword [ecx*4 + 0x798400]
imul edi, eax
mov dword [ecx*4 + 0x798400], edi
mov edi, dword [ecx*4 + 0x798404]
imul edi, eax
mov dword [ecx*4 + 0x798404], edi
mov edi, dword [ecx*4 + 0x798408]
imul edi, eax
mov dword [ecx*4 + 0x798408], edi
mov edi, dword [ecx*4 + 0x79840c]
imul edi, eax
mov dword [ecx*4 + 0x79840c], edi
mov edi, dword [ecx*4 + 0x798410]
imul edi, eax
mov dword [ecx*4 + 0x798410], edi
add ecx, 5
cmp ecx, edx
jle 0x4324f1
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
mov eax, dword [ecx*4 + 0x798400]
imul eax, edx
mov dword [ecx*4 + 0x798400], eax
inc ecx
cmp ecx, edi
jl 0x432559
mov edi, dword [esp + 0x78]
mov eax, esi
imul eax, dword [esp + 0x30]
push eax
mov edx, dword [esp + 0x74]
push edx
call dword [0x5b2480]
add esp, 8
mov dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x2c]
mov ebx, ecx
mov edx, dword [esp + 0x30]
imul ebx, edx
add ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x94]
imul eax, edx
neg ecx
imul ecx, edx
add eax, ecx
push eax
push ebx
mov ebx, dword [esp + 0x50]
call dword [0x5b2480]
add esp, 8
mov dword [esp + 0x54], ebx
mov edx, dword [esp + 0x2c]
dec edx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x28]
sub eax, ebx
cmp esi, edx
jge 0x4328a5
add ebx, ebx
add ebx, ebx
mov dword [esp + 0x48], ebx
mov edx, dword [esp + 0x28]
lea ecx, [edx + edx]
add ecx, ecx
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0x70]
lea ecx, [ebx + ecx]
mov dword [esp], ecx
sub ebp, edx
add ebp, ebp
add ebp, ebp
mov dword [esp + 0x44], ebp
lea edx, [edi + edi]
add edx, edx
mov edi, dword [esp + 0x24]
imul edi, dword [esp + 0x7c]
add edx, edi
mov dword [esp + 0x4c], edx
add eax, eax
add eax, eax
mov edx, esi
mov ebp, dword [esp + 0x30]
imul edx, ebp
mov dword [esp + 0x34], edx
mov edx, esi
imul edx, ebp
add edx, ebx
mov edi, esi
imul edi, ebp
add edi, ecx
lea ebp, [esi + esi]
add ebp, ebp
add ebp, ebp
add ebp, ebp
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
mov ebx, edx
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x48]
push eax
push ebx
call dword [0x5b2480]
add esp, 8
mov eax, dword [esp + 0x44]
push eax
push edi
call dword [0x5b2480]
add esp, 8
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x54]
add edi, edi
add edi, edi
add edi, dword [esp + 0x70]
add edi, esi
mov dword [esp + 0x50], edi
mov edx, dword [ebp + 0x798400]
mov eax, dword [esp + 0x74]
add edx, eax
mov ecx, dword [esp + 0x4c]
add edx, ecx
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0x798404]
add edx, eax
add edx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x798408]
add edx, eax
add edx, ecx
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x79840c]
add edx, eax
add edx, ecx
mov dword [esp + 0x18], edx
add edi, dword [esp + 0x38]
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x40], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], esi
lea eax, [esp + 0xc]
movd mm2, dword [eax]
movd mm3, dword [eax + 4]
movd mm4, dword [eax + 8]
movd mm5, dword [eax + 0xc]
pxor mm7, mm7
mov edx, dword [esp + 0x50]
lea edi, [0x7a8500]
mov eax, dword [esp + 0x54]
shl eax, 4
add edi, eax
mov ebx, dword [esp + 0x58]
mov eax, dword [edi]
mov ecx, dword [edi + 8]
movd esi, mm2
movd mm0, dword [esi + eax]
punpcklbw mm0, mm7
movd mm1, dword [esi + ecx]
punpcklbw mm1, mm7
paddusw mm0, mm1
movd esi, mm3
movd mm1, dword [esi + eax]
punpcklbw mm1, mm7
paddusw mm0, mm1
movd mm1, dword [esi + ecx]
punpcklbw mm1, mm7
paddusw mm0, mm1
movd esi, mm4
movd mm1, dword [esi + eax]
punpcklbw mm1, mm7
paddusw mm0, mm1
movd mm1, dword [esi + ecx]
punpcklbw mm1, mm7
paddusw mm0, mm1
movd esi, mm5
movd mm1, dword [esi + eax]
punpcklbw mm1, mm7
paddusw mm0, mm1
movd mm1, dword [esi + ecx]
punpcklbw mm1, mm7
paddusw mm0, mm1
psrlw mm0, 3
packuswb mm0, mm1
movd dword [edx], mm0
add edx, 4
add edi, 0x10
cmp edx, ebx
jne 0x43270d
emms
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
add esi, eax
add ebx, eax
add edi, eax
add ebp, 0x10
mov ecx, dword [esp + 0x3c]
inc ecx
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jl 0x432654
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x2c]
add eax, eax
mov dword [esp + 0x2c], eax
lea edx, [eax + eax]
sar edx, 2
mov ebp, dword [esp + 0x30]
imul ebp, edx
mov dword [esp + 0x30], ebp
mov ecx, dword [esp + 0x70]
lea esi, [ecx + ebp]
push ebx
push esi
call dword [0x5b2480]
add esp, 8
mov edx, ebp
add edx, dword [esp]
mov eax, dword [esp + 0x44]
push eax
push edx
call dword [0x5b2480]
add esp, 8
mov ebp, dword [esp + 0x54]
add ebp, ebp
add ebp, ebp
mov eax, dword [esp + 4]
cmp ebp, eax
jge 0x43289d
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x74]
mov dword [esp + 8], ebp
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x2c]
add eax, dword [edx*8 + 0x798400]
mov edx, dword [ebp*4 + 0x7a8500]
add edx, eax
movzx ebx, byte [edx + esi]
movzx ecx, byte [edx + esi + 1]
movzx edi, byte [edx + esi + 2]
movzx edx, byte [edx + esi + 3]
mov dword [esp + 0x24], edx
add eax, dword [ebp*4 + 0x7a8508]
movzx edx, byte [eax + esi]
add edx, ebx
mov dword [esp + 0x20], edx
movzx edx, byte [eax + esi + 1]
add edx, ecx
mov dword [esp + 0x1c], edx
movzx ecx, byte [eax + esi + 2]
add ecx, edi
movzx ebx, byte [eax + esi + 3]
add ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
sar eax, 1
mov edi, dword [esp + 0x28]
mov byte [edi + ebp], al
sar edx, 1
mov byte [edi + ebp + 1], dl
sar ecx, 1
mov byte [edi + ebp + 2], cl
sar ebx, 1
mov byte [edi + ebp + 3], bl
add ebp, 4
mov eax, dword [esp + 4]
cmp ebp, eax
jl 0x432810
add esp, 0x5c
pop ebx
pop ebp
pop esi
pop edi
ret
add ebx, ebx
add ebx, ebx
mov eax, dword [esp + 0x28]
lea ecx, [eax + eax]
add ecx, ecx
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x70]
lea esi, [edx + ecx]
mov dword [esp], esi
sub ebp, eax
add ebp, ebp
add ebp, ebp
mov dword [esp + 0x44], ebp
lea eax, [edi + edi]
add eax, eax
mov edi, dword [esp + 0x24]
imul edi, dword [esp + 0x7c]
add eax, edi
mov dword [esp + 0x4c], eax
jmp 0x4327b3
xor ecx, ecx
jmp 0x432551
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
jmp 0x432492
xor ebx, ebx
jmp 0x432492
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x2c], ecx
jmp 0x432456
xor esi, esi
jmp 0x432456
xor ecx, ecx
jmp 0x4323dc
xor edx, edx
jmp 0x43225d