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

Disassembly:
sub esp, 0x60
push ebx
push ebp
mov ebp, dword [esp + 0x70]
mov ebx, edx
push esi
push edi
mov edi, ebp
mov dword [esp + 0x10], ebx
imul edi, dword [esp + 0x7c]
mov dword [esp + 0x38], ecx
mov esi, edi
shl esi, 8
movd xmm0, esi
cvtdq2pd xmm0, xmm0
shr esi, 0x1f
addsd xmm0, qword [esi*8 + 0x101e6560]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [0x101e6404]
divss xmm0, xmm1
call fcn.10104d90
mov dword [esp + 0x34], eax
mov eax, edi
mov edi, dword [esp + 0x74]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xc]
cdq
idiv dword [esp + 0x7c]
cmp dword [ebx + 0x20], 0
je 0x10049c20
xor ebx, ebx
mov dword [esp + 0x1c], ebx
test eax, eax
jle 0x10049e99
mov eax, dword [edi + 8]
cdq
idiv ebp
mov ebp, dword [esp + 0x7c]
mov ecx, eax
xor eax, eax
mov dword [esp + 0x18], eax
nop
mov edi, dword [edi + 4]
xor esi, esi
add edi, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x50], edi
test ecx, ecx
jle 0x10049bf7
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov eax, ecx
and eax, 1
mov dword [esp + 0x14], eax
mov eax, edx
lea ebp, [edx - 1]
and eax, 1
add ebp, edi
mov dword [esp + 0x54], eax
xor ebx, ebx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
jmp 0x10049a36
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x44], edi
mov edx, dword [edx]
add edx, ebx
mov ebx, dword [esp + 0x2c]
add ecx, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x50], ebp
jge 0x10049aef
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x20]
lea eax, [ecx - 1]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], eax
nop dword [eax]
mov ecx, dword [esi + edi*4]
mov ebp, dword [esi + edi*4 + 4]
mov esi, edx
cmp edx, eax
jge 0x10049ab1
inc edx
mov edi, ebp
add edx, ecx
sub edi, ecx
movzx eax, byte [esi + ebp]
lea edx, [edx + 2]
movzx ecx, byte [edi + edx - 2]
add esi, 2
add ecx, eax
movzx eax, byte [edx - 3]
add ecx, eax
movzx eax, byte [edx - 2]
add ebx, eax
add ebx, ecx
cmp esi, dword [esp + 0x40]
jl 0x10049a84
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
cmp dword [esp + 0x14], 0
je 0x10049acc
movzx ecx, byte [esi + ebp]
mov ebp, dword [esp + 0x3c]
mov eax, dword [ebp + edi*4]
movzx eax, byte [esi + eax]
add ebx, eax
add ebx, ecx
mov eax, dword [esp + 0x40]
add edi, 2
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x44], edi
cmp edi, dword [esp + 0x4c]
jl 0x10049a70
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
jmp 0x10049af3
mov dword [esp + 0x20], ecx
test eax, eax
je 0x10049b9f
mov eax, dword [esp + 0x10]
dec ecx
xor ebp, ebp
xor esi, esi
mov eax, dword [eax + 0x20]
mov edi, dword [eax + edi*4]
mov dword [esp + 0x44], edi
cmp edx, ecx
jge 0x10049b8e
mov eax, ecx
sub eax, edx
inc eax
cmp eax, 4
jl 0x10049b79
lea esi, [edi + 3]
mov edi, ecx
sub edi, edx
add esi, edx
sub edi, 3
shr edi, 2
inc edi
lea edx, [edx + edi*4]
mov dword [esp + 0x30], edx
mov edx, ebp
nop dword [eax]
movzx eax, byte [esi - 2]
lea esi, [esi + 4]
movzx ecx, byte [esi - 7]
add ebp, eax
movzx eax, byte [esi - 4]
add ebp, ecx
movzx ecx, byte [esi - 5]
add edx, eax
add edx, ecx
sub edi, 1
jne 0x10049b40
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x44]
dec eax
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
cmp edx, eax
jge 0x10049b89
movzx eax, byte [edi + edx]
movzx ecx, byte [edi + edx + 1]
add ebx, eax
add ebx, ecx
add edx, 2
lea eax, [esi + ebp]
add ebx, eax
cmp dword [esp + 0x14], 0
mov esi, dword [esp + 0x24]
je 0x10049b9f
movzx eax, byte [edi + edx]
add ebx, eax
mov eax, dword [esp + 0x38]
imul ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x4c]
mov eax, dword [eax + 0x20]
mov edi, dword [esp + 0x50]
shr ebx, 0x18
mov eax, dword [eax + ecx*4]
mov byte [esi + eax], bl
inc esi
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x48]
add ebx, dword [esp + 0x78]
mov dword [esp + 0x24], esi
mov eax, dword [eax + 8]
cdq
idiv dword [esp + 0x78]
mov dword [esp + 0x48], ebx
mov ecx, eax
mov eax, dword [esp + 0x54]
cmp esi, ecx
jl 0x10049a32
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x7c]
mov edi, dword [esp + 0x74]
add eax, ebp
mov dword [esp + 0x18], eax
inc ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [edi + 0xc]
cdq
idiv ebp
cmp ebx, eax
mov eax, dword [esp + 0x18]
jl 0x100499f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov dword [esp + 0x20], 0
test eax, eax
jle 0x10049e99
mov eax, dword [edi + 8]
mov esi, ebp
cdq
idiv esi
mov ebp, dword [esp + 0x7c]
mov ecx, eax
xor eax, eax
mov dword [esp + 0x44], eax
mov edx, dword [edi + 4]
add edx, eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x1c], edx
cmp eax, 2
jne 0x10049ea1
xor edi, edi
mov dword [esp + 0x24], edi
test ecx, ecx
jle 0x10049e79
lea eax, [ebp - 1]
mov ecx, ebp
add eax, edx
and ecx, 1
xor ebx, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x40], ebx
nop
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x4c], edx
mov ecx, dword [ecx]
add ecx, ebx
mov ebx, ebp
add esi, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], esi
cmp dword [esp + 0x1c], eax
jge 0x10049da7
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x28]
mov eax, dword [esp + 0x48]
dec eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x78]
and eax, 1
mov dword [esp + 0x30], eax
mov edi, dword [esi + edx*4]
mov eax, dword [esi + edx*4 + 4]
mov esi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x50], eax
cmp ecx, dword [esp + 0x54]
jge 0x10049d5f
lea esi, [ecx*4 + 3]
lea edx, [ecx + 1]
add esi, eax
sub eax, edi
lea edx, [edi + edx*4]
mov edi, dword [esp + 0x54]
sub edi, ecx
mov dword [esp + 0x5c], eax
dec edi
shr edi, 1
inc edi
lea ecx, [ecx + edi*2]
mov dword [esp + 0x58], ecx
nop word [eax + eax]
movzx ecx, byte [eax + edx]
lea esi, [esi + 8]
movzx eax, byte [edx - 4]
lea edx, [edx + 8]
add ecx, eax
movzx eax, byte [esi - 0xb]
add ecx, eax
movzx eax, byte [edx - 8]
add ebx, eax
movzx eax, byte [edx - 9]
add ebx, ecx
movzx ecx, byte [edx - 5]
add ecx, eax
movzx eax, byte [esi - 4]
add ecx, eax
movzx eax, byte [esi - 8]
add ebp, eax
mov eax, dword [esp + 0x5c]
add ebp, ecx
sub edi, 1
jne 0x10049d10
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x30], 0
je 0x10049d84
movzx eax, byte [eax + esi*4]
movzx ecx, byte [edi + esi*4]
add ebx, eax
mov eax, dword [esp + 0x50]
add ebx, ecx
movzx ecx, byte [edi + esi*4 + 3]
movzx eax, byte [eax + esi*4 + 3]
add ebp, eax
add ebp, ecx
mov ecx, dword [esp + 0x28]
add edx, 2
mov esi, dword [esp + 0x14]
mov dword [esp + 0x4c], edx
cmp edx, dword [esp + 0x3c]
jl 0x10049cc5
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x24]
jmp 0x10049db2
mov eax, dword [esp + 0x78]
and eax, 1
mov dword [esp + 0x30], eax
cmp dword [esp + 0x60], 0
je 0x10049e1c
mov eax, dword [esp + 0x10]
dec esi
mov eax, dword [eax + 0x28]
mov edi, dword [eax + edx*4]
cmp ecx, esi
jge 0x10049e04
sub esi, ecx
lea edx, [ecx*4 + 7]
dec esi
add edx, edi
shr esi, 1
inc esi
lea ecx, [ecx + esi*2]
mov dword [esp + 0x28], ecx
nop
movzx eax, byte [edx - 3]
lea edx, [edx + 8]
movzx ecx, byte [edx - 0xf]
add ebx, eax
movzx eax, byte [edx - 8]
add ebx, ecx
movzx ecx, byte [edx - 0xc]
add ebp, eax
add ebp, ecx
sub esi, 1
jne 0x10049de0
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x30], 0
je 0x10049e18
movzx eax, byte [edi + ecx*4]
add ebx, eax
movzx eax, byte [edi + ecx*4 + 3]
add ebp, eax
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
imul ebx, dword [esp + 0x34]
imul ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 0x28]
mov esi, dword [esp + 0x78]
shr ebx, 0x18
and ebp, 0xff000000
mov eax, dword [eax + ecx*4]
or ebx, ebp
mov dword [eax + edi*4], ebx
inc edi
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x40]
add ebx, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x40], ebx
mov eax, dword [eax + 8]
cdq
idiv esi
mov edx, dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [esp + 0x3c]
cmp edi, ecx
jl 0x10049c80
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x7c]
mov edi, dword [esp + 0x74]
mov eax, dword [edi + 0xc]
cdq
idiv ebp
inc dword [esp + 0x20]
add dword [esp + 0x44], ebp
cmp dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
jl 0x10049c44
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov dword [esp + 0x48], 0
cmp eax, 3
jne 0x1004a158
test ecx, ecx
jle 0x10049e7d
lea eax, [ebp - 1]
mov ecx, ebp
add eax, edx
and ecx, 1
xor ebx, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x40], ebx
nop
mov ebp, dword [edi]
mov ecx, dword [esp + 0x2c]
add ebp, ebx
add esi, ebp
mov dword [esp + 0x5c], ebp
mov edi, ecx
mov ebx, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], esi
cmp dword [esp + 0x1c], eax
jge 0x1004a04d
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x28]
mov eax, dword [esp + 0x4c]
dec eax
mov dword [esp + 0x64], esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x78]
and eax, 1
mov dword [esp + 0x30], eax
nop dword [eax + eax]
mov eax, dword [esi + edx*4]
mov esi, dword [esi + edx*4 + 4]
mov dword [esp + 0x18], esi
mov esi, ebp
mov dword [esp + 0x24], eax
cmp ebp, dword [esp + 0x54]
jge 0x10049fe5
mov edi, dword [esp + 0x54]
lea edx, [eax + 4]
mov ecx, dword [esp + 0x18]
lea edx, [edx + ebp*4]
sub edi, ebp
mov eax, ecx
sub eax, dword [esp + 0x24]
dec edi
shr edi, 1
inc edi
mov dword [esp + 0x60], eax
lea esi, [ecx + 1]
lea esi, [esi + ebp*4]
lea ecx, [edi*2]
add ecx, ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x58], ecx
movzx ecx, byte [edx + eax]
lea esi, [esi + 8]
movzx eax, byte [edx - 4]
lea edx, [edx + 8]
add ecx, eax
movzx eax, byte [esi - 9]
add ecx, eax
movzx eax, byte [edx - 8]
add ebp, eax
movzx eax, byte [edx - 7]
add ebp, ecx
movzx ecx, byte [edx - 0xb]
add ecx, eax
movzx eax, byte [esi - 4]
add ecx, eax
movzx eax, byte [esi - 8]
add ebx, eax
movzx eax, byte [edx - 6]
add ebx, ecx
movzx ecx, byte [edx - 0xa]
add ecx, eax
movzx eax, byte [esi - 3]
add ecx, eax
movzx eax, byte [esi - 7]
add eax, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], ecx
sub edi, 1
jne 0x10049f70
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x5c]
mov edi, dword [esp + 0x28]
cmp dword [esp + 0x30], 0
je 0x1004a032
movzx ecx, byte [eax + esi*4]
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + esi*4]
add edi, eax
mov eax, dword [esp + 0x18]
add edi, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], edi
movzx eax, byte [eax + esi*4 + 1]
movzx ecx, byte [ecx + esi*4 + 1]
add ebx, eax
mov eax, dword [esp + 0x24]
add ebx, ecx
movzx ecx, byte [eax + esi*4 + 2]
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + esi*4 + 2]
add eax, dword [esp + 0x14]
add ecx, eax
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x64]
add edx, 2
mov dword [esp + 0x50], edx
cmp edx, dword [esp + 0x3c]
jl 0x10049f20
mov esi, dword [esp + 0x4c]
jmp 0x1004a058
mov eax, dword [esp + 0x78]
and eax, 1
mov dword [esp + 0x30], eax
cmp dword [esp + 0x68], 0
je 0x1004a0e1
mov eax, dword [esp + 0x10]
dec esi
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx*4]
mov dword [esp + 0x64], edx
cmp ebp, esi
jge 0x1004a0c6
sub esi, ebp
lea edx, [edx + ebp*4]
dec esi
add edx, 5
shr esi, 1
inc esi
lea ebp, [ebp + esi*2]
nop word [eax + eax]
movzx eax, byte [edx - 1]
lea edx, [edx + 8]
movzx ecx, byte [edx - 0xd]
add edi, eax
movzx eax, byte [edx - 8]
add edi, ecx
movzx ecx, byte [edx - 0xc]
add ebx, eax
movzx eax, byte [edx - 7]
add ebx, ecx
add eax, dword [esp + 0x14]
movzx ecx, byte [edx - 0xb]
add ecx, eax
mov dword [esp + 0x14], ecx
sub esi, 1
jne 0x1004a090
mov edx, dword [esp + 0x64]
cmp dword [esp + 0x30], 0
je 0x1004a0e1
movzx eax, byte [edx + ebp*4]
add edi, eax
movzx eax, byte [edx + ebp*4 + 1]
add ebx, eax
movzx eax, byte [edx + ebp*4 + 2]
add ecx, eax
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x48]
imul ebx, eax
imul edi, eax
imul ecx, eax
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x78]
and ebx, 0xff00ffff
shr edi, 8
mov eax, dword [eax + 0x28]
or ebx, edi
mov edi, dword [esp + 0x74]
and ecx, 0xff0000ff
shr ebx, 8
or ebx, ecx
mov ecx, dword [esp + 0x20]
shr ebx, 8
mov eax, dword [eax + ecx*4]
mov dword [eax + ebp*4], ebx
inc ebp
mov eax, dword [edi + 8]
cdq
idiv esi
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [esp + 0x3c]
add ebx, esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x40], ebx
cmp ebp, ecx
jl 0x10049ed0
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x7c]
jmp 0x10049e7d
test ecx, ecx
jle 0x10049e7d
lea eax, [ebp - 1]
mov ecx, ebp
add eax, edx
and ecx, 1
xor ebp, ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x58], ebp
mov ebx, dword [edi]
mov ecx, dword [esp + 0x2c]
add ebx, ebp
add esi, ebx
mov dword [esp + 0x3c], ebx
mov edi, ecx
mov ebp, ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], esi
cmp dword [esp + 0x1c], eax
jge 0x1004a335
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x28]
mov eax, dword [esp + 0x4c]
dec eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x78]
and eax, 1
mov dword [esp + 0x40], eax
nop word [eax + eax]
mov eax, dword [esi + edx*4]
mov esi, dword [esi + edx*4 + 4]
mov dword [esp + 0x28], esi
mov esi, ebx
mov dword [esp + 0x24], eax
cmp ebx, dword [esp + 0x54]
jge 0x1004a2b1
mov edx, dword [esp + 0x54]
lea esi, [eax + 4]
mov ecx, dword [esp + 0x28]
lea esi, [esi + ebx*4]
sub edx, ebx
mov eax, ecx
sub eax, dword [esp + 0x24]
dec edx
shr edx, 1
inc edx
mov dword [esp + 0x68], eax
lea edi, [ecx + 1]
lea edi, [edi + ebx*4]
lea eax, [ebx + edx*2]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x64], eax
nop word [eax + eax]
movzx eax, byte [esi - 4]
lea edi, [edi + 8]
movzx ecx, byte [ebx + esi]
lea esi, [esi + 8]
add ecx, eax
movzx eax, byte [edi - 9]
add ecx, eax
movzx eax, byte [esi - 8]
add eax, dword [esp + 0x30]
add eax, ecx
movzx ecx, byte [esi - 0xb]
mov dword [esp + 0x30], eax
movzx eax, byte [esi - 7]
add ecx, eax
movzx eax, byte [edi - 4]
add ecx, eax
movzx eax, byte [edi - 8]
add ebp, eax
movzx eax, byte [esi - 6]
add ebp, ecx
movzx ecx, byte [esi - 0xa]
add ecx, eax
movzx eax, byte [edi - 3]
add ecx, eax
movzx eax, byte [edi - 7]
add eax, dword [esp + 0x14]
add eax, ecx
movzx ecx, byte [esi - 5]
mov dword [esp + 0x14], eax
movzx eax, byte [esi - 9]
add ecx, eax
movzx eax, byte [edi - 2]
add ecx, eax
movzx eax, byte [edi - 6]
add eax, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x18], ecx
sub edx, 1
jne 0x1004a220
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x40], 0
je 0x1004a31a
movzx eax, byte [eax + esi*4]
mov ecx, dword [esp + 0x28]
add edi, eax
mov eax, dword [esp + 0x28]
movzx ecx, byte [ecx + esi*4]
movzx eax, byte [eax + esi*4 + 1]
add edi, ecx
mov ecx, dword [esp + 0x24]
add ebp, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], edi
movzx ecx, byte [ecx + esi*4 + 1]
add ebp, ecx
movzx ecx, byte [eax + esi*4 + 2]
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + esi*4 + 2]
add eax, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
movzx ecx, byte [eax + esi*4 + 3]
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + esi*4 + 3]
add eax, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x60]
add edx, 2
mov dword [esp + 0x50], edx
cmp edx, dword [esp + 0x5c]
jl 0x1004a1d0
mov esi, dword [esp + 0x4c]
jmp 0x1004a340
mov eax, dword [esp + 0x78]
and eax, 1
mov dword [esp + 0x40], eax
cmp dword [esp + 0x6c], 0
je 0x1004a3e3
mov eax, dword [esp + 0x10]
dec esi
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx*4]
mov dword [esp + 0x68], edx
cmp ebx, esi
jge 0x1004a3bf
sub esi, ebx
lea edx, [edx + ebx*4]
dec esi
add edx, 5
shr esi, 1
inc esi
lea ebx, [ebx + esi*2]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x14]
movzx eax, byte [edx - 1]
lea edx, [edx + 8]
movzx ecx, byte [edx - 0xd]
add edi, eax
movzx eax, byte [edx - 8]
add edi, ecx
movzx ecx, byte [edx - 0xc]
add ebp, eax
movzx eax, byte [edx - 7]
add ebp, ecx
movzx ecx, byte [edx - 0xb]
add ebx, eax
movzx eax, byte [edx - 6]
add ebx, ecx
add eax, dword [esp + 0x18]
movzx ecx, byte [edx - 0xa]
add ecx, eax
mov dword [esp + 0x18], ecx
sub esi, 1
jne 0x1004a375
mov edx, dword [esp + 0x68]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x3c]
cmp dword [esp + 0x40], 0
je 0x1004a3e3
movzx eax, byte [edx + ebx*4]
add edi, eax
movzx eax, byte [edx + ebx*4 + 1]
add ebp, eax
movzx eax, byte [edx + ebx*4 + 2]
add dword [esp + 0x14], eax
movzx eax, byte [edx + ebx*4 + 3]
add ecx, eax
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
imul ebp, edx
mov ebx, dword [esp + 0x48]
imul edi, edx
imul eax, edx
mov esi, dword [esp + 0x78]
and ebp, 0xff00ffff
imul ecx, edx
shr edi, 8
or ebp, edi
and eax, 0xff0000ff
mov edi, dword [esp + 0x74]
shr ebp, 8
and ecx, 0xff000000
or ebp, eax
mov eax, dword [esp + 0x38]
shr ebp, 8
or ebp, ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + ecx*4]
mov dword [eax + ebx*4], ebp
inc ebx
mov eax, dword [edi + 8]
cdq
idiv esi
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [esp + 0x5c]
add ebp, esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x58], ebp
cmp ebx, ecx
jl 0x1004a178
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x7c]
jmp 0x10049e7d