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

Disassembly:
movsx ecx, word [ebp + 0x20]
imul ecx, dword [ebx + 0x40]
movsx eax, word [ebp - 0x20]
imul eax, dword [ebx - 0x40]
lea esi, [ecx + ecx*2]
mov edi, ecx
shl esi, 3
imul edi, edi, 0x29cf
sub esi, ecx
shl eax, 0xd
lea esi, [esi + esi*2]
add eax, 0x400
lea esi, [ecx + esi*4]
shl esi, 4
add esi, ecx
lea ecx, [edi + eax]
mov dword [esp + 0x28], ecx
mov ecx, eax
sub ecx, edi
movsx edi, word [ebp]
imul edi, dword [ebx]
mov dword [esp + 0x14], ecx
lea ecx, [esi + eax]
mov dword [esp + 0x18], ecx
sub eax, esi
movsx ecx, word [ebp + 0x40]
imul ecx, dword [ebx + 0x80]
mov esi, edi
mov dword [esp + 0x34], eax
sub esi, ecx
lea eax, [esi*8]
sub eax, esi
shl eax, 4
add eax, esi
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x20], eax
lea eax, [esi + esi*8]
shl eax, 3
sub eax, esi
lea eax, [eax + eax*4]
shl eax, 4
add eax, esi
lea esi, [esi + eax*2]
lea eax, [ecx + ecx*4]
mov dword [esp + 0x10], esi
add esi, ecx
lea eax, [ecx + eax*8]
shl eax, 8
add eax, ecx
lea eax, [esi + eax*2]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, edi
imul eax, eax, 0x1ccd
add eax, esi
lea esi, [edi + edi*8]
lea esi, [edi + esi*2]
lea esi, [edi + esi*4]
shl esi, 5
sub esi, edi
shl esi, 1
mov edi, esi
mov esi, dword [esp + 0x10]
sub esi, edi
mov edi, ecx
shl edi, 6
add edi, ecx
lea ecx, [ecx + edi*4]
shl ecx, 4
mov edi, ecx
mov ecx, dword [esp + 0x20]
sub ecx, edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x28]
add edi, ecx
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x2c]
sub ecx, edi
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x18]
lea edi, [ecx + eax]
sub ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edi
lea ecx, [eax + esi]
sub eax, esi
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
movsx edi, word [ebp + 0x30]
lea esi, [ecx + eax]
sub eax, ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x5c], eax
movsx esi, word [ebp - 0x10]
imul edi, dword [ebx + 0x60]
movsx eax, word [ebp + 0x10]
imul esi, dword [ebx - 0x20]
imul eax, dword [ebx + 0x20]
movsx ecx, word [ebp + 0x50]
lea ebp, [eax + esi]
imul ecx, dword [ebx + 0xa0]
imul ebp, ebp, 0x2b4e
lea ebx, [edi + esi]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], ebx
lea ebp, [ebx + ebx*4]
shl ebp, 6
sub ebp, ebx
lea ebp, [ebx + ebp*4]
lea ebx, [ebx + ebp*8]
mov dword [esp + 0x10], ebx
lea ebx, [ecx + esi]
imul ebx, ebx, 0x22fc
mov dword [esp + 0x1c], ebx
mov ebx, esi
sub ebx, ecx
lea ebp, [ebx + ebx*2]
shl ebp, 4
add ebp, ebx
lea ebp, [ebp + ebp*2]
lea ebx, [ebp + ebp*4]
mov ebp, dword [esp + 0x14]
lea ebx, [ebx + ebx*4]
shl ebx, 1
mov dword [esp + 0x28], ebx
mov ebx, ebp
shl ebx, 4
add ebx, ebp
shl ebx, 4
add ebx, ebp
lea ebx, [ebx + ebx*4]
lea ebx, [ebp + ebx*4]
mov dword [esp + 0x14], ebx
mov ebx, esi
sub ebx, eax
imul ebx, ebx, 0xd23
mov dword [esp + 0x18], ebx
lea ebx, [esi + esi*2]
lea ebx, [esi + ebx*4]
lea ebx, [ebx + ebx*8]
shl ebx, 4
add ebx, esi
lea ebx, [ebx + ebx*4]
shl ebx, 1
mov ebp, ebx
mov ebx, dword [esp + 0x1c]
sub ebx, ebp
mov ebp, dword [esp + 0x10]
add ebx, ebp
mov ebp, dword [esp + 0x24]
add ebx, ebp
mov dword [esp + 0x2c], ebx
lea ebx, [esi + esi*2]
shl ebx, 4
sub ebx, esi
lea ebx, [ebx + ebx*4]
shl ebx, 5
mov ebp, dword [esp + 0x14]
sub ebx, esi
mov esi, dword [esp + 0x18]
shl ebx, 1
sub esi, ebx
mov ebx, dword [esp + 0x28]
add esi, ebp
add esi, ebx
lea ebx, [edi + eax]
mov dword [esp + 0x34], esi
lea esi, [ebx + ebx*8]
shl esi, 3
sub esi, ebx
lea ebx, [eax + eax*2]
shl ebx, 4
shl esi, 4
add ebx, eax
lea ebp, [esi + eax]
lea ebx, [ebx + ebx*2]
lea ebx, [ebp + ebx*4]
mov ebp, dword [esp + 0x24]
add ebp, ebx
lea ebx, [edi + edi*2]
shl ebx, 9
add ebx, edi
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x10]
lea ebx, [ebx + ebx*2]
shl ebx, 1
sub esi, ebx
add ebp, esi
mov esi, edi
sub esi, eax
mov dword [esp + 0x10], ebp
lea ebx, [esi + esi*4]
shl ebx, 8
add ebx, esi
lea esi, [edi + edi*2]
shl esi, 4
add esi, edi
lea ebx, [ebx + ebx*8]
shl esi, 5
add esi, edi
mov ebp, ebx
lea esi, [edi + esi*2]
shl esi, 1
sub ebp, esi
mov esi, dword [esp + 0x14]
add esi, ebp
mov dword [esp + 0x14], esi
lea esi, [eax + eax*4]
lea esi, [eax + esi*4]
shl esi, 5
add esi, eax
lea esi, [esi + esi*2]
lea esi, [eax + esi*4]
add eax, ecx
lea esi, [ebx + esi*2]
mov ebx, dword [esp + 0x18]
add ebx, esi
mov esi, eax
neg esi
shl esi, 4
sub esi, eax
mov dword [esp + 0x18], ebx
shl esi, 4
sub esi, eax
lea ebx, [esi + esi*4]
mov esi, dword [esp + 0x24]
shl ebx, 2
sub ebx, eax
add esi, ebx
mov dword [esp + 0x24], esi
lea esi, [eax + eax*4]
shl esi, 6
sub esi, eax
neg esi
shl esi, 2
sub esi, eax
shl esi, 3
sub esi, eax
lea eax, [ecx + ecx*2]
lea ebp, [esi + ecx]
lea eax, [ecx + eax*8]
lea eax, [ecx + eax*8]
shl eax, 5
add eax, ecx
lea eax, [ebp + eax*4]
mov ebp, dword [esp + 0x28]
add ebp, eax
mov eax, dword [esp + 0x18]
add eax, esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], eax
lea eax, [ecx + edi]
imul eax, eax, 0xffffd4b2
add esi, eax
mov dword [esp + 0x10], esi
mov esi, ecx
shl esi, 4
add esi, ecx
shl esi, 5
add esi, ecx
lea esi, [ecx + esi*2]
sub ecx, edi
imul ecx, ecx, 0xd23
lea eax, [eax + esi*8]
mov esi, dword [esp + 0x14]
add eax, ebx
mov ebx, dword [esp + 0x1c]
add ebx, eax
mov eax, dword [esp + 0x20]
add ebp, ecx
add esi, ecx
mov ecx, dword [esp + 0x2c]
lea edi, [eax + ecx]
sub eax, ecx
mov ecx, dword [esp + 0x24]
sar eax, 0xb
mov dword [edx + 0x1c0], eax
mov eax, dword [esp + 0x4c]
sar edi, 0xb
mov dword [edx - 0x20], edi
lea edi, [eax + ecx]
sub eax, ecx
mov ecx, dword [esp + 0x10]
sar eax, 0xb
mov dword [edx + 0x1a0], eax
mov eax, dword [esp + 0x54]
sar edi, 0xb
mov dword [edx], edi
lea edi, [eax + ecx]
sub eax, ecx
sar eax, 0xb
mov dword [edx + 0x180], eax
mov eax, dword [esp + 0x40]
sar edi, 0xb
lea ecx, [eax + ebx]
sub eax, ebx
sar eax, 0xb
mov dword [edx + 0x160], eax
mov eax, dword [esp + 0x5c]
sar ecx, 0xb
mov dword [edx + 0x40], ecx
lea ecx, [eax + ebp]
sub eax, ebp
mov dword [edx + 0x20], edi
sar eax, 0xb
mov dword [edx + 0x140], eax
mov eax, dword [esp + 0x44]
sar ecx, 0xb
mov dword [edx + 0x60], ecx
lea ecx, [eax + esi]
sub eax, esi
sar ecx, 0xb
sar eax, 0xb
mov dword [edx + 0x80], ecx
mov ecx, dword [esp + 0x18]
mov dword [edx + 0x120], eax
mov eax, dword [esp + 0x48]
lea esi, [eax + ecx]
sar esi, 0xb
sub eax, ecx
mov ecx, dword [esp + 0x34]
sar eax, 0xb
mov dword [edx + 0x100], eax
mov eax, dword [esp + 0x50]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x30]
mov dword [edx + 0xa0], esi
lea esi, [eax + ecx]
sub eax, ecx
add ebp, 2
sar eax, 0xb
sar esi, 0xb
mov dword [edx + 0xe0], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 0xc0], esi
add ebx, 4
add edx, 4
dec eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], eax
jne 0x504cae
mov eax, dword [esp + 0x270]
lea edx, [esp + 0x78]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], 0x10
mov ecx, dword [esp + 0x20]
mov edi, dword [edx - 0x10]
mov esi, dword [edx]
mov eax, dword [esp + 0x274]
mov ecx, dword [ecx]
mov ebp, dword [edx - 8]
lea ebx, [esi + edi]
add ecx, eax
lea eax, [ebx + ebx*2]
shl eax, 3
sub eax, ebx
lea eax, [eax + eax*2]
lea eax, [ebx + eax*4]
shl eax, 4
add eax, ebx
lea ebx, [edi + edi*2]
shl ebx, 4
add ebx, edi
shl ebx, 6
sub ebx, edi
mov edi, esi
shl edi, 4
sub edi, esi
lea ebx, [eax + ebx*2]
shl edi, 2
sub edi, esi
lea edi, [esi + edi*8]
shl edi, 5
add edi, esi
mov esi, dword [edx - 0x18]
add esi, 0x10
sub eax, edi
lea edi, [esi + ebp]
sub esi, ebp
shl edi, 0xd
shl esi, 0xd
lea ebp, [ebx + edi]
sub edi, ebx
mov ebx, dword [edx - 0x14]
mov dword [esp + 0x34], edi
lea edi, [eax + esi]
sub esi, eax
mov eax, dword [edx + 4]
mov dword [esp + 0x14], edi
mov edi, dword [edx - 0xc]
mov dword [esp + 0x18], esi
mov esi, dword [edx - 4]
mov dword [esp + 0x28], ebp
lea ebp, [edi + eax]
add ebx, esi
add ebp, ebx
lea ebx, [ebp + ebp*4]
shl ebx, 6
add ebx, ebp
lea ebx, [ebx + ebx*4]
lea ebp, [ebp + ebx*2]
lea ebx, [ebp + ebp*2]
mov dword [esp + 0x1c], ebx
lea ebx, [edi + eax]
mov ebp, ebx
shl ebp, 6
sub ebp, ebx
shl ebp, 2
sub ebp, ebx
shl ebp, 4
add ebp, ebx
lea ebx, [ebx + ebp*4]
mov ebp, ebx
mov ebx, dword [esp + 0x1c]
sub ebx, ebp
mov dword [esp + 0x38], ebx
mov ebx, dword [edx - 0x14]
add ebx, esi
lea ebp, [ebx + ebx*2]
lea ebp, [ebx + ebp*8]
shl ebp, 5
sub ebp, ebx
mov ebx, dword [esp + 0x1c]
shl ebp, 2
sub ebx, ebp
mov dword [esp + 0x10], ebx
mov ebx, dword [edx - 0x14]
lea ebp, [ebx + eax]
imul eax, eax, 0x98e
add eax, dword [esp + 0x38]
imul ebp, ebp, 0xffffe333
add eax, ebp
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
lea eax, [ebx + ebx*2]
add ebp, ebx
shl eax, 9
add eax, ebx
lea eax, [ebx + eax*4]
lea ebx, [ebp + eax*2]
mov eax, dword [esp + 0x1c]
lea ebp, [edi + esi]
add ebx, eax
mov eax, ebp
imul esi, esi, 0x41b3
neg eax
imul edi, edi, 0x6254
shl eax, 2
sub eax, ebp
shl eax, 3
sub eax, ebp
shl eax, 8
sub eax, ebp
shl eax, 1
sub eax, ebp
mov ebp, dword [esp + 0x10]
add esi, ebp
mov ebp, dword [esp + 0x38]
add esi, eax
add edi, ebp
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x58]
add edi, eax
lea eax, [ebx + esi]
sub esi, ebx
sar eax, 0x12
and eax, 0x3ff
sar esi, 0x12
mov al, byte [eax + ebp]
and esi, 0x3ff
mov byte [ecx], al
mov al, byte [esi + ebp]
mov esi, dword [esp + 0x14]
mov byte [ecx + 7], al
lea eax, [esi + edi]
sub esi, edi
sar eax, 0x12
mov edi, dword [esp + 0x24]
and eax, 0x3ff
sar esi, 0x12
mov al, byte [eax + ebp]
and esi, 0x3ff
mov byte [ecx + 1], al
mov al, byte [esi + ebp]
mov esi, dword [esp + 0x18]
mov byte [ecx + 6], al
lea eax, [esi + edi]
sub esi, edi
sar eax, 0x12
mov edi, dword [esp + 0x2c]
and eax, 0x3ff
sar esi, 0x12
mov al, byte [eax + ebp]
and esi, 0x3ff
mov byte [ecx + 2], al
mov al, byte [esi + ebp]
mov esi, dword [esp + 0x34]
mov byte [ecx + 5], al
lea eax, [esi + edi]
sub esi, edi
sar eax, 0x12
and eax, 0x3ff
sar esi, 0x12
mov al, byte [eax + ebp]
mov byte [ecx + 3], al
and esi, 0x3ff
add byte [ebx + 0x48a20c2], al
mov byte cs:[ecx + 4], al
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
add ecx, 4
dec eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], eax
jne 0x505116
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x250
ret