Function at 0x42b7e0
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 0x42bfd5
mov edx, dword [esp + 0x94]
cmp esi, edx
jl 0x42bfd5
lea edx, [ebp + ebp]
mov dword [esp + 0x24], edx
lea ecx, [edx + edx]
mov dword [esp + 0x30], ecx
test ecx, ecx
jle 0x42b9cb
lea ecx, [edx + edx]
cmp ecx, 6
jl 0x42c058
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 + 0x799cc0], eax
mov eax, dword [esp + 0x40]
cdq
idiv ebp
add eax, eax
add eax, eax
mov dword [ebx*4 + 0x799cc4], eax
mov eax, dword [esp + 0x4c]
cdq
idiv ebp
add eax, eax
add eax, eax
mov dword [ebx*4 + 0x799cc8], eax
mov eax, ecx
cdq
idiv ebp
add eax, eax
add eax, eax
mov dword [ebx*4 + 0x799ccc], eax
mov eax, esi
cdq
idiv ebp
add eax, eax
add eax, eax
mov dword [ebx*4 + 0x799cd0], 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 0x42b8f2
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 + 0x799cc0], eax
add ecx, ebp
inc ebx
cmp ebx, edi
jl 0x42b9a2
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 0x42bb3b
mov edx, ecx
lea ecx, [edx + edx]
cmp ecx, 6
jl 0x42c051
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 + 0x789bc0], eax
mov eax, ebx
cdq
idiv edi
mov dword [ecx*4 + 0x789bc4], eax
mov eax, dword [esp + 0x4c]
cdq
idiv edi
mov dword [ecx*4 + 0x789bc8], eax
mov eax, ebp
cdq
idiv edi
mov dword [ecx*4 + 0x789bcc], eax
mov eax, esi
cdq
idiv edi
mov dword [ecx*4 + 0x789bd0], 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 0x42ba87
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 + 0x789bc0], eax
add ebx, esi
inc ecx
cmp ecx, edi
jl 0x42bb1d
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x2c], edx
test edx, edx
jle 0x42c04a
xor esi, esi
xor ecx, ecx
xor edx, edx
mov edi, dword [esp + 0x94]
mov ebx, dword [esp + 0x7c]
mov eax, dword [edx + 0x789bc0]
add eax, ebx
test eax, eax
jge 0x42bb6e
lea esi, [ecx + 1]
cmp eax, dword [esp + 0x8c]
jge 0x42c036
add edx, 0x10
inc ecx
cmp ecx, edi
jl 0x42bb5f
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x28], ebp
test ebp, ebp
jle 0x42c02f
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x3c], esi
mov esi, dword [edx + 0x799cc0]
sar esi, 2
add esi, edi
test esi, esi
jge 0x42bbb6
lea ebx, [ecx + 1]
cmp esi, eax
jge 0x42c022
add edx, 0x10
inc ecx
cmp ecx, ebp
jl 0x42bba4
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
cmp esi, edx
jge 0x42bbda
mov edx, dword [esp + 0x28]
cmp ebx, edx
jl 0x42bbfa
mov eax, dword [esp + 0x30]
imul eax, dword [esp + 0x94]
push eax
mov edx, dword [esp + 0x74]
push edx
call dword [0x5a3440]
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 0x42bcab
mov eax, dword [esp + 0x38]
lea edx, [eax + eax]
cmp edx, 6
jl 0x42c01b
xor ecx, ecx
lea edx, [eax + eax - 6]
mov eax, dword [esp + 0x24]
mov edi, dword [ecx*4 + 0x789bc0]
imul edi, eax
mov dword [ecx*4 + 0x789bc0], edi
mov edi, dword [ecx*4 + 0x789bc4]
imul edi, eax
mov dword [ecx*4 + 0x789bc4], edi
mov edi, dword [ecx*4 + 0x789bc8]
imul edi, eax
mov dword [ecx*4 + 0x789bc8], edi
mov edi, dword [ecx*4 + 0x789bcc]
imul edi, eax
mov dword [ecx*4 + 0x789bcc], edi
mov edi, dword [ecx*4 + 0x789bd0]
imul edi, eax
mov dword [ecx*4 + 0x789bd0], edi
add ecx, 5
cmp ecx, edx
jle 0x42bc29
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
mov eax, dword [ecx*4 + 0x789bc0]
imul eax, edx
mov dword [ecx*4 + 0x789bc0], eax
inc ecx
cmp ecx, edi
jl 0x42bc91
mov edi, dword [esp + 0x78]
mov eax, esi
imul eax, dword [esp + 0x30]
push eax
mov edx, dword [esp + 0x74]
push edx
call dword [0x5a3440]
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 [0x5a3440]
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 0x42bfdd
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 [0x5a3440]
add esp, 8
mov eax, dword [esp + 0x44]
push eax
push edi
call dword [0x5a3440]
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 + 0x789bc0]
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 + 0x789bc4]
add edx, eax
add edx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x789bc8]
add edx, eax
add edx, ecx
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x789bcc]
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, [0x799cc0]
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 0x42be45
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 0x42bd8c
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 [0x5a3440]
add esp, 8
mov edx, ebp
add edx, dword [esp]
mov eax, dword [esp + 0x44]
push eax
push edx
call dword [0x5a3440]
add esp, 8
mov ebp, dword [esp + 0x54]
add ebp, ebp
add ebp, ebp
mov eax, dword [esp + 4]
cmp ebp, eax
jge 0x42bfd5
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 + 0x789bc0]
mov edx, dword [ebp*4 + 0x799cc0]
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 + 0x799cc8]
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 0x42bf48
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 0x42beeb
xor ecx, ecx
jmp 0x42bc89
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
jmp 0x42bbca
xor ebx, ebx
jmp 0x42bbca
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x2c], ecx
jmp 0x42bb8e
xor esi, esi
jmp 0x42bb8e
xor ecx, ecx
jmp 0x42bb14
xor edx, edx
jmp 0x42b995