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

Disassembly:
sub esp, 0x478
push esi
push edi
mov edi, 7
mov esi, 1
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], esi
call fcn.00412d80
cmp dword [0x464a9c], 0
je 0x41312e
push str.VNG_interpolation..._n
call fcn.00434a96
add eax, 0x40
push eax
call fcn.00435780
add esp, 8
cmp dword [0x466120], esi
jne 0x413145
mov esi, 0xf
mov edi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], edi
lea eax, [edi + 1]
inc esi
imul esi, eax
push 0x500
push esi
call fcn.004348ad
mov esi, eax
add esp, 8
test esi, esi
je 0x413954
push ebx
push ebp
mov dword [esp + 0x10], 0
test edi, edi
jl 0x413563
jmp 0x413180
cmp dword [esp + 0x30], 0
mov dword [esp + 0x14], 0
jl 0x413550
mov eax, dword [esp + 0x10]
shl eax, 4
mov dword [esp + 0x38], eax
mov edi, edi
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov ebx, dword [0x466120]
add ecx, edx
mov dword [esp + ecx*4 + 0x88], esi
mov edi, 0x44eb40
mov dword [esp + 0x1c], 0x40
movsx ecx, byte [edi]
movsx eax, byte [edi + 1]
mov edx, dword [esp + 0x10]
inc edi
movsx ebp, byte [edi + 1]
inc edi
inc edi
mov dword [esp + 0x20], ebp
movsx ebp, byte [edi]
inc edi
mov dword [esp + 0x24], ebp
movsx ebp, byte [edi]
inc edi
mov dword [esp + 0x34], ebp
movsx ebp, byte [edi]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], eax
inc edi
add eax, ebp
add ecx, edx
cmp ebx, 1
je 0x41321b
and ecx, 7
and eax, 1
lea ecx, [eax + ecx*2]
add ecx, ecx
mov ebp, ebx
shr ebp, cl
and ebp, 3
jmp 0x41323e
movzx ebp, word [0x4ac498]
add ebp, ecx
movzx ecx, word [0x4660a0]
and ebp, 0xf
shl ebp, 4
add ecx, eax
and ecx, 0xf
movsx ebp, byte [ecx + ebp + 0x44de88]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x20]
add ecx, edx
cmp ebx, 1
je 0x413267
and eax, 1
and ecx, 7
lea ecx, [eax + ecx*2]
add ecx, ecx
mov eax, ebx
shr eax, cl
and eax, 3
jmp 0x41328a
movzx edx, word [0x4ac498]
add edx, ecx
movzx ecx, word [0x4660a0]
and edx, 0xf
add ecx, eax
shl edx, 4
and ecx, 0xf
movsx eax, byte [edx + ecx + 0x44de88]
cmp eax, ebp
jne 0x413403
mov edx, dword [esp + 0x14]
lea eax, [edx + 1]
cmp ebx, 1
je 0x4132b6
mov ecx, dword [esp + 0x10]
and eax, 1
and ecx, 7
lea ecx, [eax + ecx*2]
add ecx, ecx
mov eax, ebx
shr eax, cl
and eax, 3
jmp 0x4132df
movzx edx, word [0x4ac498]
add edx, dword [esp + 0x10]
movzx ecx, word [0x4660a0]
and edx, 0xf
shl edx, 4
add ecx, eax
and ecx, 0xf
movsx eax, byte [edx + ecx + 0x44de88]
mov edx, dword [esp + 0x14]
cmp eax, ebp
jne 0x41332d
mov eax, dword [esp + 0x10]
inc eax
cmp ebx, 1
je 0x413301
and eax, 7
and edx, 1
lea ecx, [edx + eax*2]
add ecx, ecx
mov eax, ebx
shr eax, cl
and eax, 3
jmp 0x413324
movzx ecx, word [0x4ac498]
add ecx, eax
movzx eax, word [0x4660a0]
and ecx, 0xf
add eax, edx
shl ecx, 4
and eax, 0xf
movsx eax, byte [ecx + eax + 0x44de88]
mov ecx, 2
cmp eax, ebp
je 0x413332
mov ecx, 1
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x20]
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
jne 0x413358
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x24]
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
je 0x413403
movzx eax, word [0x466040]
mov ecx, eax
imul eax, dword [esp + 0x20]
imul ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x28]
add eax, dword [esp + 0x24]
lea edx, [ebp + ecx*4]
mov ecx, dword [esp + 0x34]
mov dword [esi], edx
add esi, 4
lea eax, [ebp + eax*4]
mov dword [esi], eax
mov al, byte [esp + 0x2c]
add esi, 4
mov dword [esi], ecx
add esi, 4
test al, 1
je 0x41339f
mov dword [esi], 0
add esi, 4
test al, 2
je 0x4133ac
mov dword [esi], 1
add esi, 4
test al, 4
je 0x4133b9
mov dword [esi], 2
add esi, 4
test al, 8
je 0x4133c6
mov dword [esi], 3
add esi, 4
test al, 0x10
je 0x4133d3
mov dword [esi], 4
add esi, 4
test al, 0x20
je 0x4133e0
mov dword [esi], 5
add esi, 4
test al, 0x40
je 0x4133ed
mov dword [esi], 6
add esi, 4
test al, al
jns 0x4133fa
mov dword [esi], 7
add esi, 4
mov dword [esi], 0xffffffff
add esi, 4
sub dword [esp + 0x1c], 1
jne 0x4131c4
mov dword [esi], 0x7fffffff
add esi, 4
mov ebp, 0x44ecc0
mov dword [esp + 0x18], 8
jmp 0x413430
movsx edi, byte [ebp]
movzx eax, word [0x466040]
movsx ebx, byte [ebp + 1]
imul eax, edi
mov ecx, dword [esp + 0x14]
inc ebp
add eax, ebx
lea edx, [eax*4]
mov dword [esi], edx
mov edx, dword [esp + 0x10]
inc ebp
mov dword [esp + 0x2c], eax
add esi, 4
call fcn.00401000
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
add edx, edi
cmp dword [0x466120], 1
lea ecx, [ebx + eax]
je 0x413496
mov eax, dword [0x466120]
and edx, 7
and ecx, 1
lea ecx, [ecx + edx*2]
add ecx, ecx
mov edx, eax
shr edx, cl
and edx, 3
jmp 0x4134be
movzx eax, word [0x4ac498]
add eax, edx
movzx edx, word [0x4660a0]
and eax, 0xf
shl eax, 4
add edx, ecx
and edx, 0xf
movsx edx, byte [eax + edx + 0x44de88]
mov eax, dword [0x466120]
mov ecx, dword [esp + 0x1c]
cmp edx, ecx
je 0x413523
mov edx, dword [esp + 0x14]
lea ebx, [edx + ebx*2]
mov edx, dword [esp + 0x10]
lea edi, [edx + edi*2]
cmp eax, 1
je 0x4134f1
and edi, 7
and ebx, 1
lea ecx, [ebx + edi*2]
add ecx, ecx
mov edx, eax
shr edx, cl
mov ecx, dword [esp + 0x1c]
and edx, 3
jmp 0x413514
movzx eax, word [0x4ac498]
movzx edx, word [0x4660a0]
add eax, edi
and eax, 0xf
add edx, ebx
shl eax, 4
and edx, 0xf
movsx edx, byte [eax + edx + 0x44de88]
cmp edx, ecx
jne 0x413523
mov eax, dword [esp + 0x2c]
lea ecx, [ecx + eax*8]
mov dword [esi], ecx
jmp 0x413529
mov dword [esi], 0
add esi, 4
sub dword [esp + 0x18], 1
jne 0x413430
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x30]
mov dword [0x45e814], ebp
mov dword [esp + 0x14], eax
jle 0x4131a0
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
jle 0x413180
movzx edi, word [0x466040]
lea edx, [edi + edi*2]
push 8
push edx
call fcn.004348ad
mov esi, eax
add esp, 8
mov dword [esp + 0x50], esi
test esi, esi
je 0x413927
mov ebp, dword [0x4ac418]
lea eax, [edi*8]
mov dword [esp + 0x38], eax
add eax, esi
mov dword [esp + 0x44], eax
mov eax, edi
shl eax, 4
add eax, esi
mov dword [esp + 0x48], eax
movzx eax, word [0x4ac486]
mov ebx, 2
sub eax, ebx
cmp eax, ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x64], eax
jle 0x4138c1
lea eax, [edi + 1]
shl eax, 4
add eax, ebp
add ebp, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ebp
lea ecx, [ecx]
movzx eax, word [0x466040]
add eax, 0xfffffffe
cmp eax, 2
mov dword [esp + 0x14], 2
jle 0x413853
mov eax, dword [esp + 0x10]
and eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x28]
shl eax, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
add eax, 0x10
mov dword [esp + 0x20], eax
lea esp, [esp]
mov ecx, dword [esp + 0x14]
and ecx, dword [esp + 0x30]
add ecx, dword [esp + 0x2c]
mov eax, dword [esp + ecx*4 + 0x88]
mov edx, dword [eax]
xor ecx, ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
cmp edx, 0x7fffffff
je 0x4136d6
jmp 0x413670
mov ecx, dword [eax + 4]
movzx esi, word [ebp + ecx*2]
movzx ecx, word [ebp + edx*2]
sub ecx, esi
mov esi, ecx
sar esi, 0x1f
mov edx, esi
xor edx, ecx
mov ecx, dword [eax + 8]
sub edx, esi
shl edx, cl
mov ecx, dword [eax + 0xc]
lea ecx, [esp + ecx*4 + 0x68]
add eax, 0x14
add dword [ecx], edx
mov ecx, dword [eax - 4]
cmp ecx, 0xffffffff
je 0x4136c8
add dword [esp + ecx*4 + 0x68], edx
lea ecx, [esp + ecx*4 + 0x68]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4136c5
add dword [esp + ecx*4 + 0x68], edx
lea ecx, [esp + ecx*4 + 0x68]
mov ecx, dword [eax + 4]
add eax, 4
cmp ecx, 0xffffffff
jne 0x4136b2
add eax, 4
mov edx, dword [eax]
cmp edx, 0x7fffffff
jne 0x413670
mov ecx, dword [esp + 0x68]
add eax, 4
mov edi, ecx
mov esi, 1
mov edx, dword [esp + esi*4 + 0x68]
cmp edi, edx
jle 0x4136ea
mov edi, edx
cmp ecx, edx
jge 0x4136f0
mov ecx, edx
inc esi
cmp esi, 8
jl 0x4136e0
test ecx, ecx
jne 0x41370e
mov edx, dword [ebp]
mov eax, dword [esp + 0x20]
mov dword [eax], edx
mov ecx, dword [ebp + 4]
mov dword [eax + 4], ecx
jmp 0x413830
sar ecx, 1
add ecx, edi
mov dword [esp + 0x34], ecx
xor ecx, ecx
cmp dword [0x466120], 1
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
je 0x413751
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov ebx, dword [0x466120]
and ecx, 1
and edx, 7
lea ecx, [ecx + edx*2]
add ecx, ecx
shr ebx, cl
and ebx, 3
jmp 0x413778
movzx edx, word [0x4ac498]
add edx, dword [esp + 0x10]
movzx ecx, word [0x4660a0]
add ecx, dword [esp + 0x14]
and edx, 0xf
shl edx, 4
and ecx, 0xf
movsx ebx, byte [edx + ecx + 0x44de88]
mov esi, dword [0x465c58]
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], edx
jmp 0x413790
mov ecx, dword [esp + 0x34]
cmp dword [esp + edx*4 + 0x68], ecx
jg 0x4137d5
xor ecx, ecx
test esi, esi
jle 0x4137d1
cmp ecx, ebx
jne 0x4137bb
mov edx, dword [eax + 4]
test edx, edx
je 0x4137bb
movzx edx, word [ebp + edx*2]
movzx edi, word [ebp + ecx*2]
add edx, edi
sar edx, 1
jmp 0x4137c4
mov edx, dword [eax]
add edx, ecx
movzx edx, word [ebp + edx*2]
add dword [esp + ecx*4 + 0x54], edx
inc ecx
cmp ecx, esi
jl 0x4137a0
mov edx, dword [esp + 0x1c]
inc dword [esp + 0x24]
inc edx
add eax, 8
cmp edx, 8
mov dword [esp + 0x1c], edx
jl 0x413790
xor ecx, ecx
test esi, esi
jle 0x413830
mov edi, dword [esp + 0x20]
lea esp, [esp]
movzx esi, word [ebp + ebx*2]
cmp ecx, ebx
je 0x413808
mov eax, dword [esp + ecx*4 + 0x54]
sub eax, dword [esp + ebx*4 + 0x54]
cdq
idiv dword [esp + 0x24]
add esi, eax
cmp esi, 0xffff
jge 0x41381c
xor eax, eax
test esi, esi
setl al
dec eax
and eax, esi
jmp 0x413821
mov eax, 0xffff
mov word [edi], ax
inc ecx
add edi, 2
cmp ecx, dword [0x465c58]
jl 0x4137f0
movzx ecx, word [0x466040]
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], 8
inc eax
add ecx, 0xfffffffe
add ebp, 8
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x413620
cmp dword [esp + 0x10], 3
jle 0x41387e
movzx eax, word [0x466040]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
lea eax, [eax*8 - 0x20]
push eax
add ecx, 0x10
push ecx
push edx
call fcn.00436980
add esp, 0xc
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
add dword [esp + 0x28], eax
add dword [esp + 0x18], eax
inc ecx
cmp ecx, dword [esp + 0x64]
mov dword [esp + 0x44], edx
mov dword [esp + 0x10], ecx
jl 0x4135e0
mov ebp, dword [0x4ac418]
mov esi, dword [esp + 0x50]
mov ebx, ecx
movzx edi, word [0x466040]
lea ecx, [ebx - 2]
imul ecx, edi
lea eax, [edi*8 - 0x20]
push eax
mov eax, dword [esp + 0x44]
add eax, 0x10
push eax
lea edx, [ebp + ecx*8 + 0x10]
push edx
call fcn.00436980
dec ebx
imul ebx, edi
lea eax, [edi*8 - 0x20]
push eax
mov eax, dword [esp + 0x54]
add eax, 0x10
push eax
lea ecx, [ebp + ebx*8 + 0x10]
push ecx
call fcn.00436980
push esi
call fcn.0043481f
mov edx, dword [esp + 0xa4]
push edx
call fcn.0043481f
add esp, 0x20
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x478
ret
mov eax, dword [0x4ac404]
push str.vng_interpolate__
push eax
push str._s:_Out_of_memory_in__s_n
call fcn.00434a96
add eax, 0x40
push eax
call fcn.00435780
add esp, 0x10
push 1
push 0x4660c0
call fcn.00435cb8
mov ecx, dword [0x4ac404]
push 0x45adbc
push ecx
push str._s:_Out_of_memory_in__s_n
call fcn.00434a96
add eax, 0x40
push eax
call fcn.00435780
add esp, 0x10
push 1
push 0x4660c0
call fcn.00435cb8
int3