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

Disassembly:
sub esp, 0x474
push ebx
push ebp
mov ebp, dword [esp + 0x480]
push esi
push edi
mov edi, 7
mov esi, 1
push ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
call fcn.100d9ca0
add esp, 4
cmp dword [ebp + 0xbc], 0
je 0x100d9f7b
push str.VNG_interpolation..._n
call fcn.1005a8d7
add eax, 0x40
push eax
call fcn.1015203d
add esp, 8
cmp dword [ebp + 0x65b0], esi
jne 0x100d9f92
mov esi, 0xf
mov edi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
lea eax, [edi + 1]
inc esi
imul esi, eax
push 0x500
push esi
call fcn.100565db
mov esi, eax
push str.vng_interpolate__
push esi
push ebp
call fcn.100cd240
add esp, 0x14
mov dword [esp + 0x10], 0
test edi, edi
jl 0x100da28b
jmp 0x100d9fd0
cmp dword [esp + 0x28], 0
mov dword [esp + 0x14], 0
jl 0x100da278
mov eax, dword [esp + 0x10]
shl eax, 4
mov dword [esp + 0x60], eax
mov edi, edi
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x14]
add ecx, edx
mov dword [esp + ecx*4 + 0x84], esi
mov edi, 0x101688d0
mov dword [esp + 0x20], 0x40
mov edi, edi
movsx eax, byte [edi]
movsx ecx, byte [edi + 1]
inc edi
movsx edx, byte [edi + 1]
inc edi
mov dword [esp + 0x1c], edx
movsx edx, byte [edi + 1]
inc edi
mov dword [esp + 0x18], edx
movsx edx, byte [edi + 1]
inc edi
mov dword [esp + 0x34], edx
movsx edx, byte [edi + 1]
inc edi
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
add ecx, edx
push ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
add eax, ecx
push eax
push ebp
inc edi
call fcn.100cd170
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebx, eax
mov eax, dword [esp + 0x20]
add edx, eax
push edx
mov edx, dword [esp + 0x20]
add ecx, edx
push ecx
push ebp
call fcn.100cd170
add esp, 0x18
cmp eax, ebx
jne 0x100da191
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
push eax
push ecx
push ebp
call fcn.100cd170
add esp, 0xc
cmp eax, ebx
jne 0x100da0b7
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
inc eax
push eax
push ebp
call fcn.100cd170
add esp, 0xc
mov ecx, 2
cmp eax, ebx
je 0x100da0bc
mov ecx, 1
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
jne 0x100da0e2
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x18]
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
je 0x100da191
movzx ecx, word [ebp + 0x66b6]
imul ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x38]
add esi, 4
lea edx, [ebx + ecx*4]
mov dword [esi - 4], edx
movzx eax, word [ebp + 0x66b6]
imul eax, dword [esp + 0x1c]
add eax, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
lea ecx, [ebx + eax*4]
mov al, byte [esp + 0x30]
mov dword [esi], ecx
add esi, 4
mov dword [esi], edx
add esi, 4
test al, 1
je 0x100da12d
mov dword [esi], 0
add esi, 4
test al, 2
je 0x100da13a
mov dword [esi], 1
add esi, 4
test al, 4
je 0x100da147
mov dword [esi], 2
add esi, 4
test al, 8
je 0x100da154
mov dword [esi], 3
add esi, 4
test al, 0x10
je 0x100da161
mov dword [esi], 4
add esi, 4
test al, 0x20
je 0x100da16e
mov dword [esi], 5
add esi, 4
test al, 0x40
je 0x100da17b
mov dword [esi], 6
add esi, 4
test al, al
jns 0x100da188
mov dword [esi], 7
add esi, 4
mov dword [esi], 0xffffffff
add esi, 4
sub dword [esp + 0x20], 1
jne 0x100da010
mov dword [esi], closesocket
add esi, 4
mov dword [0x101bc504], 0x10168a50
mov dword [esp + 0x20], 8
jmp 0x100da1c0
mov eax, dword [0x101bc504]
movsx edi, byte [eax]
movsx ebx, byte [eax + 1]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc eax
inc eax
mov dword [0x101bc504], eax
movzx eax, word [ebp + 0x66b6]
imul eax, edi
add eax, ebx
push ecx
add eax, eax
add eax, eax
push edx
mov dword [esi], eax
push ebp
add esi, 4
call fcn.100cd170
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
lea ecx, [ebx + eax]
push ecx
lea eax, [edi + edx]
push eax
push ebp
call fcn.100cd170
add esp, 0x18
cmp eax, dword [esp + 0x18]
je 0x100da251
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea edx, [ecx + ebx*2]
push edx
lea ecx, [eax + edi*2]
push ecx
push ebp
call fcn.100cd170
add esp, 0xc
cmp eax, dword [esp + 0x18]
jne 0x100da251
movzx edx, word [ebp + 0x66b6]
mov eax, dword [esp + 0x18]
imul edx, edi
add edx, ebx
lea ecx, [eax + edx*8]
mov dword [esi], ecx
jmp 0x100da257
mov dword [esi], 0
add esi, 4
sub dword [esp + 0x20], 1
jne 0x100da1c0
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
jle 0x100d9ff0
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
jle 0x100d9fd0
movzx eax, word [ebp + 0x66b6]
lea edx, [eax + eax*2]
push 8
push edx
call fcn.100565db
mov esi, eax
push str.vng_interpolate__
push esi
push ebp
mov dword [esp + 0x60], esi
call fcn.100cd240
movzx eax, word [ebp + 0x66b6]
movzx edx, word [ebp + 0x66b4]
lea ecx, [esi + eax*8]
shl eax, 4
add eax, esi
sub edx, 2
add esp, 0x14
cmp edx, 2
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], 2
jle 0x100da59f
jmp 0x100da2f0
movzx eax, word [ebp + 0x66b6]
lea ecx, [eax - 2]
cmp ecx, 2
mov dword [esp + 0x14], 2
jle 0x100da537
mov ecx, dword [esp + 0x10]
and ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
shl ecx, 4
add edx, 0x10
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], edx
jmp 0x100da330
imul eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x66e0]
add eax, ecx
and ecx, dword [esp + 0x28]
lea edi, [edx + eax*8]
add ecx, dword [esp + 0x30]
xor eax, eax
mov esi, dword [esp + ecx*4 + 0x84]
mov ecx, dword [esi]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
cmp ecx, 0x7fffffff
je 0x100da3e6
mov eax, dword [esi + 4]
movzx edx, word [edi + eax*2]
movzx ecx, word [edi + ecx*2]
sub ecx, edx
mov edx, ecx
sar edx, 0x1f
mov eax, edx
xor eax, ecx
mov ecx, dword [esi + 8]
sub eax, edx
shl eax, cl
mov ecx, dword [esi + 0xc]
lea ecx, [esp + ecx*4 + 0x64]
add esi, 0x14
add dword [ecx], eax
mov ecx, dword [esi - 4]
cmp ecx, 0xffffffff
je 0x100da3d8
add dword [esp + ecx*4 + 0x64], eax
lea ecx, [esp + ecx*4 + 0x64]
mov ecx, dword [esi]
cmp ecx, 0xffffffff
je 0x100da3d5
add dword [esp + ecx*4 + 0x64], eax
lea ecx, [esp + ecx*4 + 0x64]
mov ecx, dword [esi + 4]
add esi, 4
cmp ecx, 0xffffffff
jne 0x100da3c2
add esi, 4
mov ecx, dword [esi]
cmp ecx, 0x7fffffff
jne 0x100da382
mov eax, dword [esp + 0x64]
add esi, 4
mov edx, eax
mov ebx, 1
mov ecx, dword [esp + ebx*4 + 0x64]
cmp edx, ecx
jle 0x100da3fa
mov edx, ecx
cmp eax, ecx
jge 0x100da400
mov eax, ecx
inc ebx
cmp ebx, 8
jl 0x100da3f0
test eax, eax
jne 0x100da41d
mov ecx, dword [edi]
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
jmp 0x100da517
mov ecx, dword [esp + 0x10]
sar eax, 1
add eax, edx
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x14]
push eax
push ecx
push ebp
call fcn.100cd170
add esp, 0xc
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
jmp 0x100da460
mov edx, dword [esp + 0x34]
cmp dword [esp + ecx*4 + 0x64], edx
jg 0x100da4ae
mov edx, dword [ebp + 0x66d0]
xor eax, eax
test edx, edx
jle 0x100da4aa
cmp eax, dword [esp + 0x18]
jne 0x100da495
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100da495
movzx ebx, word [edi + eax*2]
movzx ecx, word [edi + ecx*2]
add ebx, ecx
sar ebx, 1
add dword [esp + eax*4 + 0x50], ebx
jmp 0x100da4a1
mov ecx, dword [esi]
add ecx, eax
movzx ecx, word [edi + ecx*2]
add dword [esp + eax*4 + 0x50], ecx
inc eax
cmp eax, edx
jl 0x100da476
mov ecx, dword [esp + 0x20]
inc dword [esp + 0x24]
inc ecx
add esi, 8
cmp ecx, 8
mov dword [esp + 0x20], ecx
jl 0x100da460
xor ecx, ecx
cmp dword [ebp + 0x66d0], ecx
jle 0x100da517
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [ecx]
movzx esi, word [edi + edx*2]
cmp ecx, edx
je 0x100da4ef
mov edx, dword [esp + 0x18]
mov eax, dword [esp + ecx*4 + 0x50]
sub eax, dword [esp + edx*4 + 0x50]
cdq
idiv dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add esi, eax
cmp esi, 0xffff
jge 0x100da503
xor eax, eax
test esi, esi
setl al
dec eax
and eax, esi
jmp 0x100da508
mov eax, 0xffff
mov word [ebx], ax
inc ecx
add ebx, 2
cmp ecx, dword [ebp + 0x66d0]
jl 0x100da4d0
movzx eax, word [ebp + 0x66b6]
mov ecx, dword [esp + 0x14]
add dword [esp + 0x1c], 8
inc ecx
lea edx, [eax - 2]
cmp ecx, edx
mov dword [esp + 0x14], ecx
jl 0x100da330
mov esi, dword [esp + 0x10]
cmp esi, 3
jle 0x100da570
movzx eax, word [ebp + 0x66b6]
mov edx, dword [esp + 0x3c]
lea ecx, [eax*8 - 0x20]
push ecx
lea ecx, [esi - 2]
imul ecx, eax
add edx, 0x10
push edx
mov edx, dword [ebp + 0x66e0]
lea eax, [edx + ecx*8 + 0x10]
push eax
call fcn.1005a380
add esp, 0xc
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x44], eax
movzx eax, word [ebp + 0x66b4]
inc esi
sub eax, 2
cmp esi, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x10], esi
jl 0x100da2f0
movzx eax, word [ebp + 0x66b6]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
lea ecx, [eax*8 - 0x20]
push ecx
lea ecx, [esi - 2]
imul ecx, eax
add edx, 0x10
push edx
mov edx, dword [ebp + 0x66e0]
lea eax, [edx + ecx*8 + 0x10]
push eax
call fcn.1005a380
movzx eax, word [ebp + 0x66b6]
mov edx, dword [esp + 0x4c]
dec esi
imul esi, eax
lea ecx, [eax*8 - 0x20]
mov eax, dword [ebp + 0x66e0]
push ecx
add edx, 0x10
push edx
lea ecx, [eax + esi*8 + 0x10]
push ecx
call fcn.1005a380
mov edx, dword [esp + 0x64]
push edx
call fcn.10054ff5
mov eax, dword [esp + 0xa0]
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x474
mov dword [esp + 4], eax
jmp fcn.10054ff5